Brief description of class still missing. More...
#include <LinkStream.h>
Public Member Functions | |
| LinkBuffer * | buffer () const |
| virtual bool | connect (uint16_t port) |
| virtual void | hungUp () |
| LinkStream (int fileDescriptor, const Address &peer) | |
| LinkStream (const Address &peer) | |
| ~LinkStream () | |
Brief description of class still missing.
Full description of class still missing
| LinkStream::LinkStream | ( | int | fileDescriptor, |
| const Address & | peer | ||
| ) |
Description of constructor still missing
References PeerTracker::instance(), GpCoreTools::TcpClientStream::setBuffer(), and PeerTracker::start().
: TcpClientStream(fileDescriptor, peer.value()) { setBuffer(new LinkBuffer(peer, fileDescriptor)); PeerTracker::instance()->start(peer, this); }
| LinkStream::LinkStream | ( | const Address & | peer | ) |
Description of constructor still missing
References PeerTracker::instance(), and PeerTracker::start().
: TcpClientStream(peer.value()) { PeerTracker::instance()->start(peer, this); }
{
}
| LinkBuffer* LinkStream::buffer | ( | ) | const [inline] |
Reimplemented from GpCoreTools::TcpClientStream.
Referenced by connect().
{return static_cast<LinkBuffer *>(TcpClientStream::buffer());}
| bool LinkStream::connect | ( | uint16_t | port | ) | [virtual] |
Reimplemented from GpCoreTools::TcpClientStream.
References buffer(), GpCoreTools::Stream::fileDescriptor(), GpCoreTools::TcpClientStream::peer(), GpCoreTools::TcpClientStream::setBuffer(), and LinkBuffer::startTest().
Referenced by LinkTimer::exec().
{
if(TcpClientStream::connect(port)) {
LinkBuffer * buffer=new LinkBuffer(peer(), fileDescriptor());
setBuffer(buffer);
buffer->startTest();
return true;
} else {
return false;
}
}
| void LinkStream::hungUp | ( | ) | [virtual] |
Reimplemented from GpCoreTools::TcpClientStream.
References PeerTracker::instance(), GpCoreTools::TcpClientStream::peer(), and PeerTracker::stop().
{
PeerTracker::instance()->stop(peer());
}