Public Member Functions
LinkStream Class Reference

Brief description of class still missing. More...

#include <LinkStream.h>

Inheritance diagram for LinkStream:
GpCoreTools::TcpClientStream GpCoreTools::Stream

List of all members.

Public Member Functions

LinkBufferbuffer () const
virtual bool connect (uint16_t port)
virtual void hungUp ()
 LinkStream (int fileDescriptor, const Address &peer)
 LinkStream (const Address &peer)
 ~LinkStream ()

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

LinkStream::LinkStream ( int  fileDescriptor,
const Address peer 
)
LinkStream::LinkStream ( const Address peer)

Description of constructor still missing

References PeerTracker::instance(), and PeerTracker::start().

    : TcpClientStream(peer.value())
{
  PeerTracker::instance()->start(peer, this);
}
{
}

Member Function Documentation

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]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines