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

UNIXmsg Class Reference

Short Description. More...

#include <UNIXmsg.h>

Inheritance diagram for UNIXmsg:

msg UNIXmsgServer List of all members.

Public Member Functions

 UNIXmsg (void)
 This creates pair of sockets that can be used, use the second constuctor to create other endof unix socket.
 UNIXmsg (SOCKET s)
 This creates a socket from socket that has already been used.
 UNIXmsg (const char *pathname)
 Short Description.
 ~UNIXmsg (void)
void closeOtherSocket (void)
 Short Description.
int getFD (void)
int getOtherSock (void)
int send (void)
 This should send complete message at once or fail.
int recv (void)
 Short Description.
int recvNoWait (void)
 Short Description.

Protected Attributes

SOCKET sock
SOCKET other_sock

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 UNIXmsg.h.


Constructor & Destructor Documentation

UNIXmsg::UNIXmsg void   ) 
 

This creates pair of sockets that can be used, use the second constuctor to create other endof unix socket.

Long Description if necessary.

Author:
<author name>="">

Definition at line 25 of file UNIXmsg.cpp.

References LocalSocketPair(), other_sock, sock, and SOCKET.

UNIXmsg::UNIXmsg SOCKET  s  ) 
 

This creates a socket from socket that has already been used.

Author:
<author name>="">

Definition at line 38 of file UNIXmsg.cpp.

References other_sock, and sock.

UNIXmsg::UNIXmsg const char *  pathname  ) 
 

Short Description.

Long Description if necessary.

Author:
<author name>="">

Definition at line 51 of file UNIXmsg.cpp.

References other_sock, and sock.

UNIXmsg::~UNIXmsg void   ) 
 

Author:
<author name>="">

Definition at line 78 of file UNIXmsg.cpp.

References other_sock, and sock.


Member Function Documentation

void UNIXmsg::closeOtherSocket void   ) 
 

Short Description.

Long Description if necessary.

Author:
<author name>="">

Definition at line 94 of file UNIXmsg.cpp.

References other_sock.

Referenced by testUnamedSockets().

int UNIXmsg::getFD void   )  [inline]
 

Definition at line 27 of file UNIXmsg.h.

References sock.

Referenced by Daemon::run().

int UNIXmsg::getOtherSock void   )  [inline]
 

Definition at line 28 of file UNIXmsg.h.

References other_sock.

Referenced by testUnamedSockets().

int UNIXmsg::recv void   )  [virtual]
 

Short Description.

Long Description if necessary.

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

Reimplemented from msg.

Definition at line 135 of file UNIXmsg.cpp.

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

Referenced by childTest(), parentTest(), recvNoWait(), and testUnamedSockets().

int UNIXmsg::recvNoWait void   )  [virtual]
 

Short Description.

Long Description if necessary.

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

Reimplemented from msg.

Definition at line 161 of file UNIXmsg.cpp.

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

Referenced by Daemon::processController().

int UNIXmsg::send void   )  [virtual]
 

This should send complete message at once or fail.

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

Reimplemented from msg.

Definition at line 108 of file UNIXmsg.cpp.

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

Referenced by childTest(), parentTest(), and testUnamedSockets().


Member Data Documentation

SOCKET UNIXmsg::other_sock [protected]
 

Definition at line 40 of file UNIXmsg.h.

Referenced by closeOtherSocket(), getOtherSock(), UNIXmsg(), and ~UNIXmsg().

SOCKET UNIXmsg::sock [protected]
 

Definition at line 39 of file UNIXmsg.h.

Referenced by UNIXmsgServer::Accept(), UNIXmsgServer::Bind(), getFD(), recv(), recvNoWait(), send(), UNIXmsg(), UNIXmsgServer::UNIXmsgServer(), and ~UNIXmsg().


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