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


Public Types | |
| enum | statusID { closed, connecting, connected, listening, sending, receiving, closing } |
Public Member Functions | |
| TCPEndpoint (int sendBufferSize=8192, int receiveBufferSize=8192) | |
| TCPEndpoint (char *address, int port) | |
| ~TCPEndpoint () | |
| int | listen (int port) |
| int | connect (char *address, int port) |
| int | send (void *Data, int size) |
| int | close () |
| virtual void | onConnect (void) |
| virtual void | onReceive (void *Data, int size) |
| virtual void | onClose (int reason) |
| virtual void | onSendingDone (void) |
| const char * | getErrorString (TCPEndpointError error) |
| virtual void | listenCont (antEnvMsg *msg) |
| virtual void | sendCont (antEnvMsg *msg) |
| virtual void | receiveCont (antEnvMsg *msg) |
| virtual void | closeCont (antEnvMsg *msg) |
| virtual void | connectCont (antEnvMsg *msg) |
| statusID | getStatus (void) |
Protected Member Functions | |
| void | startReceiving () |
Protected Attributes | |
| IPAddress | address |
| Port | port |
| statusID | status |
| bool | wasListening |
| int | sizeOfDataToSend |
| void * | sendDataBuffer |
Private Member Functions | |
| void | sendSendMessage (int size) |
Definition at line 22 of file TCPEndpoint.h.
|
|
Definition at line 25 of file TCPEndpoint.h. Referenced by getStatus(). |
|
||||||||||||
|
Definition at line 18 of file TCPEndpoint.cpp. References address, closed, status, and wasListening. |
|
||||||||||||
|
Definition at line 27 of file TCPEndpoint.cpp. References connect(). |
Here is the call graph for this function:

|
|
Definition at line 33 of file TCPEndpoint.cpp. References close(). |
Here is the call graph for this function:

|
|
Definition at line 101 of file TCPEndpoint.cpp. References listening, status, and VERIFY. Referenced by closeCont(). |
|
||||||||||||
|
Definition at line 44 of file TCPEndpoint.cpp. References connecting, and status. Referenced by TCPEndpoint(). |
|
||||||||||||
|
Definition at line 154 of file TCPEndpoint.cpp. References connected, MAXSENDSIZE, sendDataBuffer, sendSendMessage(), sizeOfDataToSend, and status. Referenced by TestServer::onConnect(), TestServer::onReceive(), and TCPHandler::sendPackage(). |
Here is the call graph for this function:

|
|
Definition at line 294 of file TCPEndpoint.cpp. References closed, closing, and status. Referenced by TestServer::onReceive(), receiveCont(), sendCont(), and ~TCPEndpoint(). |
|
|
Reimplemented in TestServer, and TCPHandler. Definition at line 94 of file TCPEndpoint.cpp. Referenced by connectCont(), and listenCont(). |
|
||||||||||||
|
Reimplemented in TestServer, and TCPHandler. Definition at line 285 of file TCPEndpoint.cpp. Referenced by receiveCont(). |
|
|
Reimplemented in TCPHandler. Definition at line 308 of file TCPEndpoint.cpp. Referenced by receiveCont(). |
|
|
Reimplemented in TCPHandler. Definition at line 235 of file TCPEndpoint.cpp. Referenced by sendCont(). |
|
|
Definition at line 331 of file TCPEndpoint.cpp. Referenced by closeCont(), connectCont(), listenCont(), receiveCont(), and sendCont(). |
|
|
Reimplemented from IPEndpoint. Definition at line 129 of file TCPEndpoint.cpp. References connected, getErrorString(), onConnect(), startReceiving(), status, and wasListening. |
Here is the call graph for this function:

|
|
Reimplemented from IPEndpoint. Definition at line 188 of file TCPEndpoint.cpp. References close(), connected, getErrorString(), MAXSENDSIZE, onSendingDone(), sendDataBuffer, sendSendMessage(), sizeOfDataToSend, and status. |
Here is the call graph for this function:

|
|
Reimplemented from IPEndpoint. Definition at line 251 of file TCPEndpoint.cpp. References close(), connected, getErrorString(), onClose(), onReceive(), startReceiving(), and status. |
Here is the call graph for this function:

|
|
Reimplemented from IPEndpoint. Definition at line 313 of file TCPEndpoint.cpp. References closed, getErrorString(), listen(), status, and wasListening. |
Here is the call graph for this function:

|
|
Reimplemented from IPEndpoint. Definition at line 70 of file TCPEndpoint.cpp. References closed, connected, getErrorString(), onConnect(), startReceiving(), and status. |
Here is the call graph for this function:

|
|
Definition at line 58 of file TCPEndpoint.h. |
|
|
Definition at line 241 of file TCPEndpoint.cpp. References connected, and status. Referenced by connectCont(), listenCont(), and receiveCont(). |
|
|
Definition at line 226 of file TCPEndpoint.cpp. References status. Referenced by send(), and sendCont(). |
|
|
Definition at line 63 of file TCPEndpoint.h. Referenced by TCPEndpoint(). |
|
|
Definition at line 64 of file TCPEndpoint.h. |
|
|
Definition at line 65 of file TCPEndpoint.h. Referenced by close(), closeCont(), connect(), connectCont(), getStatus(), listen(), listenCont(), receiveCont(), send(), sendCont(), sendSendMessage(), startReceiving(), and TCPEndpoint(). |
|
|
Definition at line 67 of file TCPEndpoint.h. Referenced by closeCont(), listenCont(), and TCPEndpoint(). |
|
|
Definition at line 68 of file TCPEndpoint.h. Referenced by send(), and sendCont(). |
|
|
Definition at line 69 of file TCPEndpoint.h. Referenced by send(), and sendCont(). |
1.3.6