#include <TCPIPComm.h>
Klassendiagramm für CTCPIPComm:

Öffentliche Methoden | |
| CTCPIPComm (const short TCPport, const char *pIPAddress, const bool PassiveConnection, const long MaxSendDataLen, const long MaxRecvDataLen) | |
| Conctuctor creates a new object of CTCPIPComm. | |
| virtual | ~CTCPIPComm () |
| destructor | |
| int | GetLastSocketError (void) const |
| GetLastSocketError returns the last socket error occured. | |
| bool | IsConnected (void) const |
| IsConnected returns the connection state of the connection. | |
| bool | ConnectRequest (void) |
| ConnectRequest Tries to connect to the communication partner. | |
| bool | Send (const void *pData, const long DataLen) |
| Send Transmits the given data to the communication partner. | |
Geschützte Methoden | |
| virtual void | ConnectIndication (void)=0 |
| ConnectIndication Indicates that the TCP/IP connection is established, pure virtual function. | |
| virtual void | DisconnectIndication (void)=0 |
| DisconnectIndication Indicates that the TCP/IP connection was broken down. | |
| CTCPIPComm (void) | |
| Conctuctor. | |
| void | Initialize (const short TCPport, const char *pIPAddress, const bool PassiveConnection, const long MaxSendDataLen, const long MaxRecvDataLen) |
| Conctuctor Initializes a object of CTCPIPComm. | |
Private Methoden | |
| void | ConInd (void) |
| ConInd Will be called from CTCPIPCommConnect indicating estalished connection. | |
| void | DisInd (void) |
| DisInd Will be called from CTCPIPCommConnect indicating a broken connection. | |
| void | RecvDisInd (void) |
| RecvDisInd Will be called from CTCPIPCommRecv indicating a broken connection. | |
| void | SendDisInd (void) |
| SendDisInd Will be called from CTCPIPCommSend indicating a broken connection. | |
Private Attribute | |
| int | m_LastSocketError |
| bool | m_PassiveConnection |
| bool | m_LineConnected |
| SOCKADDR_IN | m_RemoteAddr |
| SOCKET | m_PassiveSocket |
| bool | m_bInitialized |
| bool | m_bTerminating |
Statische private Attribute | |
| int | m_NumOfInstances = 0 |
| bool | m_bArrayUsed [MAX_DIF_ADDR] = { false, false } |
| SOCKADDR_IN | m_ArrayRemoteAddr [MAX_DIF_ADDR] = { 0, 0 } |
| SOCKET | m_ArrayPassiveSocket [MAX_DIF_ADDR] = { INVALID_SOCKET, INVALID_SOCKET } |
|
||||||||||||||||||||||||
|
Conctuctor creates a new object of CTCPIPComm.
|
|
|
Conctuctor. Initialize-Funktion has to be used when this constructor is used. |
|
|
ConInd Will be called from CTCPIPCommConnect indicating estalished connection.
Implementiert CTCPIPCommConnect. |
|
|
ConnectIndication Indicates that the TCP/IP connection is established, pure virtual function.
Implementiert in Cfps. |
|
|
ConnectRequest Tries to connect to the communication partner.
|
|
|
DisconnectIndication Indicates that the TCP/IP connection was broken down.
Implementiert in Cfps. |
|
|
DisInd Will be called from CTCPIPCommConnect indicating a broken connection.
Implementiert CTCPIPCommConnect. |
|
|
GetLastSocketError returns the last socket error occured.
Erneute Implementation von CTCPIPCommConnect. |
|
||||||||||||||||||||||||
|
Conctuctor Initializes a object of CTCPIPComm.
|
|
|
IsConnected returns the connection state of the connection.
Erneute Implementation in CTCPIPConnector. |
|
|
RecvDisInd Will be called from CTCPIPCommRecv indicating a broken connection.
Implementiert CTCPIPCommReceive. |
|
||||||||||||
|
Send Transmits the given data to the communication partner.
Erneute Implementation von CTCPIPCommSend. |
|
|
SendDisInd Will be called from CTCPIPCommSend indicating a broken connection.
Implementiert CTCPIPCommSend. |
1.3.7