#include <TCPIPCommReceive.h>
Klassendiagramm für CTCPIPCommReceive:

Öffentliche Methoden | |
| CTCPIPCommReceive (const long MaxRecvBufferLen=8192) | |
| Conctuctor creates a new object of CTCPIPCommConnect. | |
| virtual | ~CTCPIPCommReceive () |
| destructor | |
| void | Initialize (const SOCKET Socket) |
| Initialize Initializes and stars the connection thread. | |
| bool | StartReceiving (void) |
| ConnectRequest Tries to establish the connection to the communication partner. | |
| int | GetLastSocketError (void) const |
| GetLastSocketError Returns the last socket error occured. | |
| bool | Terminating (void) const |
| Terminating (get state) Returns the state whether the class is terminating (destructor) or not. | |
| void | Terminating (bool Terminating) |
| Terminating (set state) Sets the state Terminating according to the parameter. | |
Geschützte Methoden | |
| virtual void | Receive (void *pData, long DataLen)=0 |
| Receive Indicates that the TCP/IP connection is established. | |
| virtual void | RecvDisInd (void)=0 |
| RecvDisInd Indicates that the TCP/IP connection was broken down. | |
| void | InitializeClass (const long MaxRecvBufferLen) |
| Initializes object data. | |
Private, statische Methoden | |
| void | RecvThread (CTCPIPCommReceive *pClass) |
| RecvThread (static) Start function for the Receive Thread. | |
Private Attribute | |
| SOCKET | m_Socket |
| int | m_LastSocketError |
| DWORD | m_ThreadID |
| HANDLE | m_ThreadHandle |
| HANDLE | m_hEventTerminate |
| HANDLE | m_hEventTerminateFinished |
| HANDLE | m_hEventStartReceiving |
| void * | m_pRecvBuffer |
| long | m_MaxRecvBufferLen |
| bool | m_Terminating |
Definiert in Zeile 51 der Datei TCPIPCommReceive.h.
|
|
Conctuctor creates a new object of CTCPIPCommConnect.
Definiert in Zeile 67 der Datei TCPIPCommReceive.cpp. Benutzt CTCPIPCommReceive() und InitializeClass(). Wird benutzt von CTCPIPCommReceive(). |
|
|
GetLastSocketError Returns the last socket error occured.
Erneute Implementation in CTCPIPComm. Definiert in Zeile 174 der Datei TCPIPCommReceive.h. |
|
|
Initialize Initializes and stars the connection thread.
Definiert in Zeile 177 der Datei TCPIPCommReceive.cpp. Benutzt Initialize(). Wird benutzt von Initialize(). |
|
|
Initializes object data. Use this to Initialize the class object after construction.
Definiert in Zeile 95 der Datei TCPIPCommReceive.cpp. Benutzt InitializeClass() und RecvThread(). Wird benutzt von CTCPIPCommReceive() und InitializeClass(). |
|
||||||||||||
|
Receive Indicates that the TCP/IP connection is established.
Wird benutzt von RecvThread(). |
|
|
RecvDisInd Indicates that the TCP/IP connection was broken down.
Implementiert in CTCPIPComm. Wird benutzt von RecvThread(). |
|
|
RecvThread (static) Start function for the Receive Thread.
Definiert in Zeile 223 der Datei TCPIPCommReceive.cpp. Benutzt m_hEventStartReceiving, m_hEventTerminate, m_hEventTerminateFinished, m_pRecvBuffer, m_Socket, Receive(), RecvDisInd(), RecvThread() und Terminating(). Wird benutzt von InitializeClass() und RecvThread(). |
|
|
ConnectRequest Tries to establish the connection to the communication partner.
Definiert in Zeile 196 der Datei TCPIPCommReceive.cpp. Wird benutzt von CTCPIPComm::ConInd(). |
|
|
Terminating (set state) Sets the state Terminating according to the parameter.
Definiert in Zeile 186 der Datei TCPIPCommReceive.h. |
|
|
Terminating (get state) Returns the state whether the class is terminating (destructor) or not.
Definiert in Zeile 180 der Datei TCPIPCommReceive.h. Wird benutzt von RecvThread() und CTCPIPComm::~CTCPIPComm(). |
1.3.7