#include <TCPIPCommConnect.h>
Klassendiagramm für CTCPIPCommConnect:

Öffentliche Methoden | |
| CTCPIPCommConnect () | |
| Conctuctor creates a new object of CTCPIPCommConnect. | |
| virtual | ~CTCPIPCommConnect () |
| destructor | |
| void | Initialize (const short TCPport, const char *pIPAddress, const bool PassiveConnection=false) |
| Initialize Initializes and stars the connection thread. | |
| bool | ConnectRequest (SOCKET PassiveSocket) |
| ConnectRequest Tries to establish the connection to the communication partner. | |
| bool | DisconnectRequest (void) |
| DisconnectRequest Close the current connection. | |
| int | GetLastSocketError (void) const |
| GetLastSocketError Returns the last socket error occured. | |
| bool | Terminating (void) const |
| Terminating Returns the state whether the class is terminating (destructor) or not. | |
| SOCKET | GetSocket (void) |
| GetSocket Returns the socket of the established connection. | |
| unsigned long | GetRemoteIPAddr (void) |
| GetRemoteIPAddr Returns the remote IP Address as a long value. | |
| in_addr | ConvToInAddr (unsigned long nIPAddress) const |
| ConvToInAddr Returns a IP Address as a in_addr. | |
| const SOCKADDR_IN & | GetRemoteAddr (void) |
| Returns the remote IP Address as a SOCKADDR_IN. | |
| SOCKADDR_IN | ConvTCPAddrToSocketAddr (const short TCPport, const char *pIPAddr) |
| ConvTCPAddrToSocketAddr Converts the TCP port and IP Address string into a socket address. | |
Geschützte Methoden | |
| virtual void | ConInd (void)=0 |
| ConInd Indicates that the TCP/IP connection is established. | |
| virtual void | DisInd (void)=0 |
| DisInd Indicates that the TCP/IP connection was broken down. | |
Private Methoden | |
| bool | AwaitConnection (void) |
| AwaitConnection Calls the Await Function in order to await a connection. | |
| bool | EstablishConnection (void) |
| EstablishConnection Calls the Connect Function in order to establish activley a connection. | |
Private, statische Methoden | |
| void | ConnectThread (CTCPIPCommConnect *pClass) |
| ConvTCPAddrToSocketAddr (static) Start function for the Connect Thread. | |
Private Attribute | |
| SOCKET | m_Socket |
| SOCKET | m_PassiveSocket |
| SOCKADDR_IN | m_RemoteAddr |
| bool | m_PassiveConnection |
| int | m_LastSocketError |
| DWORD | m_ThreadID |
| HANDLE | m_ThreadHandle |
| HANDLE | m_hEventTerminate |
| HANDLE | m_hEventTerminateFinished |
| HANDLE | m_hEventConnecting |
| unsigned long | m_RemoteIPAddr |
| bool | m_Terminating |
|
|
Conctuctor creates a new object of CTCPIPCommConnect.
|
|
|
AwaitConnection Calls the Await Function in order to await a connection.
|
|
|
ConInd Indicates that the TCP/IP connection is established.
Implementiert in CTCPIPComm. |
|
|
ConnectRequest Tries to establish the connection to the communication partner.
|
|
|
ConvTCPAddrToSocketAddr (static) Start function for the Connect Thread.
|
|
||||||||||||
|
ConvTCPAddrToSocketAddr Converts the TCP port and IP Address string into a socket address.
|
|
|
ConvToInAddr Returns a IP Address as a in_addr.
|
|
|
DisconnectRequest Close the current connection.
|
|
|
DisInd Indicates that the TCP/IP connection was broken down.
Implementiert in CTCPIPComm. |
|
|
EstablishConnection Calls the Connect Function in order to establish activley a connection.
|
|
|
GetLastSocketError Returns the last socket error occured.
Erneute Implementation in CTCPIPComm. |
|
|
Returns the remote IP Address as a SOCKADDR_IN.
|
|
|
GetRemoteIPAddr Returns the remote IP Address as a long value.
|
|
|
GetSocket Returns the socket of the established connection.
|
|
||||||||||||||||
|
Initialize Initializes and stars the connection thread.
|
|
|
Terminating Returns the state whether the class is terminating (destructor) or not.
|
1.3.7