lmsg::TCPSocket Class Reference
[DMT message facility]

#include <TCPSocket.hh>

Inheritance diagram for lmsg::TCPSocket:

lmsg::Socket

List of all members.

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)


Detailed Description

Class to manipulate TCP sockets. brief Socket class.
Author:
John Zweizig
Version:
1.1; Modified April 21, 2000

Constructor & Destructor Documentation

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.

Parameters:
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


Member Function Documentation

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.

Returns:
Standard lmsg error codes (OK, NotOpen or SystemError).

Reimplemented from lmsg::Socket.


The documentation for this class was generated from the following file:
Generated on Sun Mar 8 19:21:35 2009 for dmt by  doxygen 1.5.4