#include <TCPSocket.hh>

Public Member Functions | |
| TCPSocket (const MsgAddr *addr=0) | |
| ~TCPSocket (void) | |
| error_type | waitConnect (wtime_type time, TCPSocket **ts=0) |
| error_type | listen (int nListen=1) |
| error_type | disconnect (void) |
| lmsg::TCPSocket::TCPSocket | ( | const MsgAddr * | addr = 0 |
) |
Allocate a TCP/IP socket and bind it to the specified address. If no address pointer is specified, an unused port address will be allocated. brief Construct a TCP socket.
| addr | Pointer to the address to which the socket will be bound. |
| lmsg::TCPSocket::~TCPSocket | ( | void | ) |
Release the socket and delete all asociated storage. brief Destructor
| error_type lmsg::TCPSocket::waitConnect | ( | wtime_type | time, | |
| TCPSocket ** | ts = 0 | |||
| ) |
Wait for a connection to be made to this socket.
| error_type lmsg::TCPSocket::listen | ( | int | nListen = 1 |
) |
Listen for a connection to be made to this socket.
| error_type lmsg::TCPSocket::disconnect | ( | void | ) | [virtual] |
Disconnect the socket from a ciurrent parner. If no connection has been made, diconnect returns successfully. brief Disconnect from partner.
Reimplemented from lmsg::Socket.
1.5.4