MOOS 0.2375
Public Member Functions | Static Public Member Functions | Protected Member Functions
CMOOSCommObject Class Reference

#include <MOOSCommObject.h>

Inheritance diagram for CMOOSCommObject:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CMOOSCommObject ()
virtual ~CMOOSCommObject ()

Static Public Member Functions

static bool SocketsInit ()
 called to intialise system socket services. Only does something useful in Win32 land

Protected Member Functions

bool SendPkt (XPCTcpSocket *pSocket, CMOOSCommPkt &PktTx)
bool ReadPkt (XPCTcpSocket *pSocket, CMOOSCommPkt &PktRx, int nSecondsTimeOut=-1)
bool SendMsg (XPCTcpSocket *pSocket, CMOOSMsg &Msg)
bool ReadMsg (XPCTcpSocket *pSocket, CMOOSMsg &Msg, int nSecondsTimeOut=-1)

Detailed Description

A base class for the CMOOSCommServer and CMOOSCommClient objects. This class provides basic Receive and Transmit capabilities of CMOOSMsg's and CMOOSCommPkts. Where messages are passed as parameters then there are transparently packed into packets.

Definition at line 48 of file MOOSCommObject.h.


Constructor & Destructor Documentation

CMOOSCommObject::CMOOSCommObject ( )

Definition at line 49 of file MOOSCommObject.cpp.

CMOOSCommObject::~CMOOSCommObject ( ) [virtual]

Definition at line 54 of file MOOSCommObject.cpp.


Member Function Documentation

bool CMOOSCommObject::ReadMsg ( XPCTcpSocket pSocket,
CMOOSMsg Msg,
int  nSecondsTimeOut = -1 
) [protected]

Definition at line 162 of file MOOSCommObject.cpp.

bool CMOOSCommObject::ReadPkt ( XPCTcpSocket pSocket,
CMOOSCommPkt PktRx,
int  nSecondsTimeOut = -1 
) [protected]

Definition at line 60 of file MOOSCommObject.cpp.

bool CMOOSCommObject::SendMsg ( XPCTcpSocket pSocket,
CMOOSMsg Msg 
) [protected]

Definition at line 147 of file MOOSCommObject.cpp.

bool CMOOSCommObject::SendPkt ( XPCTcpSocket pSocket,
CMOOSCommPkt PktTx 
) [protected]

Definition at line 125 of file MOOSCommObject.cpp.

bool CMOOSCommObject::SocketsInit ( ) [static]

called to intialise system socket services. Only does something useful in Win32 land

Definition at line 185 of file MOOSCommObject.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines