#include <CHMmfcSocketTransport.h>
Inheritance diagram for CHMmfcSocketTransport:

This implementation of CHMtransport inherits from the MFC CSocket class to provide a TCP/IP transport layer. See the on-line help for CSocket in your MFC guide for documentation.
Public Member Functions | |
| CHMmfcSocketTransport () | |
| Constructor. | |
| virtual | ~CHMmfcSocketTransport () |
| Destructor. | |
| virtual void | Close () |
| Close the connection. | |
| virtual BOOL | Connect (LPCTSTR Host, UINT PortNumber) |
Connect to Host on port PortNumber. | |
| virtual void | OnReceive (int nErrorCode) |
| Error on receive. | |
| virtual void | OnAccept (int nErrorCode) |
| Error on accept. | |
| virtual void | OnClose (int nErrorCode) |
| Error on close. | |
| virtual void | SendMessage (const CHMstring &Data) |
| Send a message. | |
| virtual void | SendResponseMessage (const CHMstring &MessageData, size_t TransportIndex) |
| Send a response message. | |
| const size_t & | TransportIndex () const |
| Get the transport index of this transport object. | |
|
|
Constructor. After construction it is still necessary to call the Create function. See the on-line help for CSocket in MSDN. |
|
|
Destructor.
|
|
|
Close the connection.
|
|
||||||||||||
|
Connect to
|
|
|
Error on accept.
|
|
|
Error on close.
|
|
|
Error on receive.
|
|
|
Send a message. This method is used by the CHMwrapper class to initiate a client connection to a server by sending it a message. |
|
||||||||||||
|
Send a response message.
This method is called by the CHMwrapper class to send the response back to the counter party which is indexed using Implements CHMtransport. |
|
|
Get the transport index of this transport object. For the main server socket this method will return 0. For the child sockets it will be 1, 2, 3, etc. |