20 #ifndef SGCTP_CTRANSMIT_TCP_HPP
21 #define SGCTP_CTRANSMIT_TCP_HPP
64 virtual int send(
int _iSocket,
69 virtual int recv(
int _iSocket,
83 const CData &_roData );
111 #endif // SGCTP_CTRANSMIT_TCP_HPP
virtual void setTimeout(int _iSocket, double _fdTimeout)
Set the transmission (send/receive) timeout, in seconds.
virtual ETransmitType getTransmitType()
Return the transmission type.
virtual int recv(int _iSocket, void *_pBuffer, int _iSize, int _iFlags)
Receive data from the given descriptor.
int sendHandshake(int _iSocket)
Send the TCP handshake.
ETransmitType
Transmission types.
virtual int send(int _iSocket, const void *_pBuffer, int _iSize, int _iFlags)
Send data to the given descriptor.
virtual int alloc()
Allocate resources required for data transmission (un-/serialization)
Generic transmission of SGCTP payload.
int recvHandshake(int _iSocket)
Receive the TCP handshake (and initialize internal resources: principal/payload)
virtual int serialize(int _iSocket, const CData &_roData)
Serialize the given SGCTP data to the given descriptor.
TCP transmission of SGCTP payload.
virtual int unserialize(int _iSocket, CData *_poData, int _iMaxSize=0)
Unserialize the SGCTP data from the given descriptor.