#include <TCPSocket.h>
Inheritance diagram for TCPSocket:
Public Member Functions | |
TCPSocket () | |
~TCPSocket () | |
void | Open (int fd=0) |
Open a new tcp socket or use a previously opened one. | |
void | Send (const DCDT_Msg *msg) |
Send a message using a connection-orientend protocol ( tcp ). | |
DCDT_Msg * | Receive () |
Receive a message. | |
void | Listen (int qlen=5) |
Listen for connections. | |
TCPSocket * | Accept () |
Accept a new connection. | |
void | SetBufs (int rcvbuf, int sndbuf, int rcvlowat, int sndlowat) |
void | SetSegSize (int size) |
|
Definition at line 35 of file TCPSocket.h. Referenced by Accept(). |
|
Definition at line 36 of file TCPSocket.h. |
|
Accept a new connection. Used only the conn timer.
Definition at line 324 of file TCPSocket.h. References Socket::ConnTimerOn(), DCDT_TRC_COMM, Socket::LostTimerOn(), Open(), Socket::ReceiveTimerOn(), Socket::SendTimerOn(), Socket::SetConnTimer(), Socket::SetLostTimer(), Socket::SetReceiveTimer(), Socket::SetSendTimer(), TCPSocket(), and TRC_PRINT. Referenced by DCDT_Channel_IP::WaitConn(). |
|
Listen for connections.
Definition at line 304 of file TCPSocket.h. References DCDT_TRC_COMM, and TRC_PRINT. Referenced by DCDT_Channel_IP::Open(), and DCDT_Channel_IP::Reopen(). |
|
Open a new tcp socket or use a previously opened one.
If fd!=0, a valid socket descriptor was passed, get the informations about the remote and set connected=1.
Implements Socket. Definition at line 53 of file TCPSocket.h. References DCDT_TRC_COMM, and TRC_PRINT. Referenced by Accept(), DCDT_Channel_IP::Open(), and DCDT_Channel_IP::Reopen(). |
|
Receive a message. Such as in Send receive a message in two steps, first the header then the payload; a new DCDT_Msg object is created and returned when a message was received, is up to the user to delete the object. Timers precedence: unblock, receive, lost.
Implements Socket. Definition at line 165 of file TCPSocket.h. References DCDT_MsgHeader, DCDT_TRC_COMM, DCDT_Msg::ReadPayloadLen(), DCDT_Msg::SetPayload(), and TRC_PRINT. Referenced by DCDT_Channel_IP::Receive(), and DCDT_Channel_IP::WaitConn(). |
|
Send a message using a connection-orientend protocol ( tcp ). Send the message msg in two steps:
Implements Socket. Definition at line 85 of file TCPSocket.h. References DCDT_TRC_COMM, DCDT_Msg::GetHeader(), DCDT_Msg::GetPayload(), DCDT_Msg::ReadPayloadLen(), and TRC_PRINT. Referenced by DCDT_Channel_IP::Send(), and DCDT_Channel_IP::StartConn(). |
|
Definition at line 384 of file TCPSocket.h. References DCDT_TRC_COMM, Socket::GetOption(), and TRC_PRINT. Referenced by DCDT_Channel_IP::Open(), and DCDT_Channel_IP::Reopen(). |
|
Definition at line 412 of file TCPSocket.h. References DCDT_TRC_COMM, Socket::GetOption(), and TRC_PRINT. |