reSIProcate/stack  9694
Public Member Functions | Protected Member Functions
resip::TcpTransport Class Reference

#include <TcpTransport.hxx>

Inheritance diagram for resip::TcpTransport:
Inheritance graph
[legend]
Collaboration diagram for resip::TcpTransport:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TcpTransport (Fifo< TransactionMessage > &fifo, int portNum, IpVersion version, const Data &interfaceObj, AfterSocketCreationFuncPtr socketFunc=0, Compression &compression=Compression::Disabled, unsigned transportFlags=0)
virtual ~TcpTransport ()
TransportType transport () const

Protected Member Functions

ConnectioncreateConnection (const Tuple &who, Socket fd, bool server=false)
 Makes new Connection using provided socket.

Detailed Description

Definition at line 12 of file TcpTransport.hxx.


Constructor & Destructor Documentation

TcpTransport::TcpTransport ( Fifo< TransactionMessage > &  fifo,
int  portNum,
IpVersion  version,
const Data interfaceObj,
AfterSocketCreationFuncPtr  socketFunc = 0,
Compression compression = Compression::Disabled,
unsigned  transportFlags = 0 
)

Definition at line 19 of file TcpTransport.cxx.

References resip::Tuple::getPort(), InfoLog, resip::TcpBaseTransport::init(), resip::Transport::mTuple, resip::InternalTransport::mTxFifo, resip::FifoStatsInterface::setDescription(), resip::Tuple::setType(), transport(), and resip::V4.

   : TcpBaseTransport(fifo, portNum, version, pinterface, socketFunc, compression, transportFlags)
{
   mTuple.setType(transport());

   init();

   InfoLog (<< "Creating TCP transport host=" << pinterface
            << " port=" << mTuple.getPort()
            << " ipv4=" << bool(version==V4) );
            
   mTxFifo.setDescription("TcpTransport::mTxFifo");
}

Here is the call graph for this function:

TcpTransport::~TcpTransport ( ) [virtual]

Definition at line 37 of file TcpTransport.cxx.

{
}

Member Function Documentation

Connection * TcpTransport::createConnection ( const Tuple who,
Socket  fd,
bool  server = false 
) [protected, virtual]

Makes new Connection using provided socket.

Implements resip::TcpBaseTransport.

Definition at line 42 of file TcpTransport.cxx.

References resip::Transport::mCompression.

{
   assert(this);
   Connection* conn = new TcpConnection(this,who, fd, mCompression);
   return conn;
}
TransportType resip::TcpTransport::transport ( ) const [inline, virtual]
Returns:
This transport's TransportType.

Implements resip::Transport.

Definition at line 24 of file TcpTransport.hxx.

References resip::TCP.

Referenced by main(), and TcpTransport().

{ return TCP; }

The documentation for this class was generated from the following files: