#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 |
Definiert in Zeile 57 der Datei TCPIPCommConnect.h.
|
|
Conctuctor creates a new object of CTCPIPCommConnect.
Definiert in Zeile 75 der Datei TCPIPCommConnect.cpp. Benutzt ConnectThread(). |
|
|
AwaitConnection Calls the Await Function in order to await a connection.
Definiert in Zeile 320 der Datei TCPIPCommConnect.cpp. Wird benutzt von ConnectThread(). |
|
|
ConInd Indicates that the TCP/IP connection is established.
Implementiert in CTCPIPComm. Wird benutzt von ConnectThread(). |
|
|
ConnectRequest Tries to establish the connection to the communication partner.
Definiert in Zeile 270 der Datei TCPIPCommConnect.cpp. Benutzt ConnectRequest(). Wird benutzt von ConnectRequest(). |
|
|
ConvTCPAddrToSocketAddr (static) Start function for the Connect Thread.
Definiert in Zeile 377 der Datei TCPIPCommConnect.cpp. Benutzt AwaitConnection(), ConInd(), ConnectThread(), DisInd(), EstablishConnection(), m_hEventConnecting, m_hEventTerminate, m_hEventTerminateFinished, m_LastSocketError, m_PassiveConnection, m_RemoteIPAddr, m_Socket und Terminating(). Wird benutzt von ConnectThread() und CTCPIPCommConnect(). |
|
||||||||||||
|
ConvTCPAddrToSocketAddr Converts the TCP port and IP Address string into a socket address.
Definiert in Zeile 217 der Datei TCPIPCommConnect.cpp. Benutzt ConvTCPAddrToSocketAddr(). Wird benutzt von ConvTCPAddrToSocketAddr() und Initialize(). |
|
|
ConvToInAddr Returns a IP Address as a in_addr.
Definiert in Zeile 196 der Datei TCPIPCommConnect.cpp. |
|
|
DisconnectRequest Close the current connection.
Definiert in Zeile 297 der Datei TCPIPCommConnect.cpp. Wird benutzt von CTCPIPComm::DisInd() und ~CTCPIPCommConnect(). |
|
|
DisInd Indicates that the TCP/IP connection was broken down.
Implementiert in CTCPIPComm. Wird benutzt von ConnectThread(). |
|
|
EstablishConnection Calls the Connect Function in order to establish activley a connection.
Definiert in Zeile 345 der Datei TCPIPCommConnect.cpp. Wird benutzt von ConnectThread(). |
|
|
GetLastSocketError Returns the last socket error occured.
Erneute Implementation in CTCPIPComm. Definiert in Zeile 234 der Datei TCPIPCommConnect.h. |
|
|
Returns the remote IP Address as a SOCKADDR_IN.
Definiert in Zeile 259 der Datei TCPIPCommConnect.h. |
|
|
GetRemoteIPAddr Returns the remote IP Address as a long value.
Definiert in Zeile 254 der Datei TCPIPCommConnect.h. |
|
|
GetSocket Returns the socket of the established connection.
Definiert in Zeile 247 der Datei TCPIPCommConnect.h. Wird benutzt von CTCPIPComm::ConInd(). |
|
||||||||||||||||
|
Initialize Initializes and stars the connection thread.
Definiert in Zeile 154 der Datei TCPIPCommConnect.cpp. Benutzt ConvTCPAddrToSocketAddr() und Initialize(). Wird benutzt von Initialize(). |
|
|
Terminating Returns the state whether the class is terminating (destructor) or not.
Definiert in Zeile 240 der Datei TCPIPCommConnect.h. Wird benutzt von ConnectThread(). |
1.3.7