Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

TCPmsg Class Reference

Short Description. More...

#include <TCPmsg.h>

Inheritance diagram for TCPmsg:

msg List of all members.

Public Member Functions

 TCPmsg (const __URL &url, __PORT port)
 Short Description.
 TCPmsg (const __IP &ip, __PORT port)
 Short Description.
 TCPmsg (const char *ip, __PORT port)
 Short Description.
int send (void)
 Short Description.
int recv (void)
 Short Description.
int recvNoWait (void)
 Short Description.
int select (int otherFD)
 Short Description.
int run ()
 Short Description.
int getFD (void)

Protected Member Functions

int setNoDelay (void)
 Short Description.

Private Attributes

SOCKET sock
sockaddr_in sa

Detailed Description

Short Description.

Long Description if necessary.

Parameters:
<parameter_name> <parameter_descreption>
Returns:
<information on="" what="" is="" being="" returned>="">
Author:
<author name>="">

Definition at line 18 of file TCPmsg.h.


Constructor & Destructor Documentation

TCPmsg::TCPmsg const __URL url,
__PORT  port
 

Short Description.

Long Description if necessary.

Parameters:
<parameter_name> <parameter_descreption>
Returns:
<information on="" what="" is="" being="" returned>="">
Author:
<author name>="">

Definition at line 18 of file TCPmsg.cpp.

References Connect(), __PORT::PORT, sa, sock, Sockaddr_url(), SocketTCP(), and __URL::URL.

TCPmsg::TCPmsg const __IP ip,
__PORT  port
 

Short Description.

Long Description if necessary.

Parameters:
<parameter_name> <parameter_descreption>
Returns:
<information on="" what="" is="" being="" returned>="">
Author:
<author name>="">

Definition at line 35 of file TCPmsg.cpp.

References Connect(), __IP::IP, __PORT::PORT, sa, sock, Sockaddr_ip(), and SocketTCP().

TCPmsg::TCPmsg const char *  ip,
__PORT  port
 

Short Description.

Long Description if necessary.

Parameters:
<parameter_name> <parameter_descreption>
Returns:
<information on="" what="" is="" being="" returned>="">
Author:
<author name>="">

Definition at line 52 of file TCPmsg.cpp.

References Connect(), __PORT::PORT, sa, sock, Sockaddr_url(), and SocketTCP().


Member Function Documentation

int TCPmsg::getFD void   )  [inline]
 

Definition at line 37 of file TCPmsg.h.

References sock.

Referenced by main(), and Daemon::run().

int TCPmsg::recv void   )  [virtual]
 

Short Description.

Long Description if necessary.

Parameters:
<parameter_name> <parameter_descreption>
Returns:
<information on="" what="" is="" being="" returned>="">
Author:
<author name>="">

Reimplemented from msg.

Definition at line 114 of file TCPmsg.cpp.

References buflen, err_sys(), msg::error_code, msg::inbuf, and sock.

Referenced by Daemon::processClient(), processNET(), recvNoWait(), run(), and select().

int TCPmsg::recvNoWait void   )  [virtual]
 

Short Description.

Long Description if necessary.

Parameters:
<parameter_name> <parameter_descreption>
Returns:
<information on="" what="" is="" being="" returned>="">
Author:
<author name>="">

Reimplemented from msg.

Definition at line 141 of file TCPmsg.cpp.

References buflen, err_sys(), msg::error_code, msg::inbuf, recv(), and sock.

Referenced by processNet().

int TCPmsg::run void   ) 
 

Short Description.

Long Description if necessary.

Parameters:
<parameter_name> <parameter_descreption>
Returns:
<information on="" what="" is="" being="" returned>="">
Author:
<author name>="">

Definition at line 224 of file TCPmsg.cpp.

References msg::dispatch(), err_sys(), i, recv(), select(), sock, and SOCKET.

int TCPmsg::select int  otherFD  ) 
 

Short Description.

Long Description if necessary.

Parameters:
<parameter_name> <parameter_descreption>
Returns:
<information on="" what="" is="" being="" returned>="">
Author:
<author name>="">

Definition at line 168 of file TCPmsg.cpp.

References msg::dispatch(), err_sys(), i, recv(), sock, and SOCKET.

Referenced by run().

int TCPmsg::send void   )  [virtual]
 

Short Description.

Long Description if necessary.

Parameters:
<parameter_name> <parameter_descreption>
Returns:
<information on="" what="" is="" being="" returned>="">
Author:
<author name>="">

Reimplemented from msg.

Definition at line 93 of file TCPmsg.cpp.

References err_sys(), msg::outbuf, and sock.

int TCPmsg::setNoDelay void   )  [protected]
 

Short Description.

Long Description if necessary.

Parameters:
<parameter_name> <parameter_descreption>
Returns:
<information on="" what="" is="" being="" returned>="">
Author:
<author name>="">

Definition at line 71 of file TCPmsg.cpp.

References sock.


Member Data Documentation

struct sockaddr_in TCPmsg::sa [private]
 

Definition at line 44 of file TCPmsg.h.

Referenced by TCPmsg().

SOCKET TCPmsg::sock [private]
 

Definition at line 43 of file TCPmsg.h.

Referenced by getFD(), recv(), recvNoWait(), run(), select(), send(), setNoDelay(), and TCPmsg().


The documentation for this class was generated from the following files:
Generated on Fri Sep 1 14:26:02 2006 for Raptor by  doxygen 1.4.4