|
Public Member Functions |
| BOOL | GetParamsHash (GUID *pGuid) |
| | Gets the hash value of last passed parameter list.
|
| BOOL | VerifyParams (const GUID *pGuid) |
| | Verifies the hash of the last sent parameter list.
|
| BOOL | GetParams (CReg *pParams, GUID *pGuid=NULL) |
| | Copies the parameter list from the last received command.
|
| long | OnNetMsg (WPARAM wParam, LPARAM lParam) |
| | Resolved callback function that handles network notifications.
|
| virtual BOOL | OnRx () |
| | Called when new data is received from the network.
|
| virtual BOOL | OnTx () |
| | Called when the transmit buffer is empty and is able to receive more data.
|
| virtual BOOL | IsValid () |
| | Returns non-zero if this object is valid.
|
| | CNetCom (CNetMsg *pRx=NULL, CNetMsg *pTx=NULL) |
| | Constructs a network communication object.
|
|
virtual | ~CNetCom () |
| | Destructor.
|
|
CNetMsg::SAddress & | GetDst () |
| | Returns the address of the destination session.
|
|
CNetMsg::SAddress & | GetSrc () |
| | Returns the address of the source session.
|
|
CNetMsg * | Rx () |
| | Returns a pointer to the receiver messenger.
|
|
CNetMsg * | Tx () |
| | Returns a pointer to the transmitter messenger.
|
|
CNetMsg::SConnection & | Conn () |
| | Returns a reference connection information structure.
|
|
CNetMsg::SMsg & | SMsg () |
| | Returns the message information data structure.
|
| virtual CNetCom * | GetNode (const GUID *pGuid) |
| | Return a valid CNetCom*, in this case, the this pointer.
|
| virtual CNetCom * | FindByRxName (LPCTSTR pName) |
| | Return a valid CNetCom*, in this case, the this pointer.
|
| virtual CNetCom * | FindByTxName (LPCTSTR pName) |
| | Return a valid CNetCom*, in this case, the this pointer.
|
| virtual BOOL | OnInitSession () |
| | Over-ride to provide custom initialization.
|
| virtual BOOL | Disconnect () |
| | Over-ride and implement a disconnect.
|
Static Public Member Functions |
| static long | NetMsg (LPVOID pData, WPARAM wParam, LPARAM lParam) |
| | Callback function that handles network notifications.
|
Protected Attributes |
|
CNetMsg * | m_prx |
| | Delete in destructor if custom type then set to NULL.
|
|
CNetMsg * | m_ptx |
| | Delete in destructor if custom type then set to NULL.
|
Binds the receive and transmit portions of the network layer.