Brief description of class still missing. More...
#include <MasterStream.h>
Public Member Functions | |
MasterBuffer * | buffer () const |
virtual bool | connect (GpsStation *station, uint16_t port) |
virtual void | hungUp () |
MasterStream (std::list< GpsStation * > *stations, int fileDescriptor, const Address &peer) | |
MasterStream (GpsStation *station, int fileDescriptor, const Address &peer) |
Brief description of class still missing.
Full description of class still missing
MasterStream::MasterStream | ( | std::list< GpsStation * > * | stations, |
int | fileDescriptor, | ||
const Address & | peer | ||
) |
Description of constructor still missing
References GpCoreTools::TcpClientStream::setBuffer(), and TRACE.
: TcpClientStream(fileDescriptor, peer) { TRACE; setBuffer(new MasterBuffer(fileDescriptor, stations)); }
MasterStream::MasterStream | ( | GpsStation * | station, |
int | fileDescriptor, | ||
const Address & | peer | ||
) |
MasterBuffer* MasterStream::buffer | ( | ) | const [inline] |
Reimplemented from GpCoreTools::TcpClientStream.
Referenced by connect().
{return static_cast<MasterBuffer *>(TcpClientStream::buffer());}
bool MasterStream::connect | ( | GpsStation * | station, |
uint16_t | port | ||
) | [virtual] |
References buffer(), GpCoreTools::Stream::fileDescriptor(), GpCoreTools::TcpClientStream::setBuffer(), and TRACE.
{ TRACE; if(TcpClientStream::connect(port)) { MasterBuffer * buffer=new MasterBuffer(fileDescriptor(), station); setBuffer(buffer); return true; } else { return false; } }
void MasterStream::hungUp | ( | ) | [virtual] |