MOOS 0.2375
|
#include <MOOSCommObject.h>
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) |
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.
CMOOSCommObject::CMOOSCommObject | ( | ) |
Definition at line 49 of file MOOSCommObject.cpp.
CMOOSCommObject::~CMOOSCommObject | ( | ) | [virtual] |
Definition at line 54 of file MOOSCommObject.cpp.
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.