#include <EchoServer.h>
Public Member Functions | |
EchoServer () | |
virtual | ~EchoServer () |
virtual OStatus | DoInit (const OSystemEvent &event) |
virtual OStatus | DoStart (const OSystemEvent &event) |
virtual OStatus | DoStop (const OSystemEvent &event) |
virtual OStatus | DoDestroy (const OSystemEvent &event) |
void | ListenCont (ANTENVMSG msg) |
void | SendCont (ANTENVMSG msg) |
void | ReceiveCont (ANTENVMSG msg) |
void | CloseCont (ANTENVMSG msg) |
Public Attributes | |
OSubject * | subject [numOfSubject] |
OObserver * | observer [numOfObserver] |
Private Member Functions | |
OStatus | Listen (int index) |
OStatus | Send (int index) |
OStatus | Receive (int index) |
OStatus | Close (int index) |
OStatus | InitTCPConnection (int index) |
void | SetSendData (int index) |
void | SetReceiveData (int index) |
Private Attributes | |
antStackRef | ipstackRef |
TCPConnection | connection [ECHOSERVER_CONNECTION_MAX] |
|
Definition at line 21 of file EchoServer.cc. |
|
Definition at line 25 of file EchoServer.h. |
|
Definition at line 212 of file EchoServer.cc. References connection, CONNECTION_CLOSED, ipstackRef, and TCPConnection::state. Referenced by ListenCont(), ReceiveCont(), and SendCont(). |
|
Definition at line 231 of file EchoServer.cc. References connection, Listen(), and TCPConnection::state. |
|
Definition at line 57 of file EchoServer.cc. |
|
Definition at line 26 of file EchoServer.cc. |
|
Definition at line 33 of file EchoServer.cc. References InitTCPConnection(), ipstackRef, and Listen(). |
|
Definition at line 50 of file EchoServer.cc. |
|
Definition at line 244 of file EchoServer.cc. References byte, connection, ECHOSERVER_BUFFER_SIZE, ipstackRef, TCPConnection::recvBuffer, TCPConnection::recvData, TCPConnection::sendBuffer, TCPConnection::sendData, and TCPConnection::state. Referenced by DoStart(). |
|
Definition at line 63 of file EchoServer.cc. References connection, ECHOSERVER_BUFFER_SIZE, ECHOSERVER_PORT, TCPConnection::endpoint, IP_ADDR_ANY(), ipstackRef, and TCPConnection::state. Referenced by CloseCont(), and DoStart(). |
|
Definition at line 100 of file EchoServer.cc. References Close(), connection, Receive(), SetReceiveData(), and TCPConnection::state. |
|
Definition at line 169 of file EchoServer.cc. References connection, CONNECTION_CONNECTED, ipstackRef, and TCPConnection::state. Referenced by ListenCont(), and SendCont(). |
|
Definition at line 188 of file EchoServer.cc. References Close(), connection, Send(), TCPConnection::sendSize, and SetSendData(). |
|
Definition at line 123 of file EchoServer.cc. References connection, ipstackRef, TCPConnection::sendSize, and TCPConnection::state. Referenced by ReceiveCont(). |
|
Definition at line 145 of file EchoServer.cc. References Close(), connection, Receive(), SetReceiveData(), and TCPConnection::state. |
|
Definition at line 299 of file EchoServer.cc. References connection, and TCPConnection::recvSize. Referenced by ListenCont(), and SendCont(). |
|
Definition at line 292 of file EchoServer.cc. References connection, and memcpy(). Referenced by ReceiveCont(). |
|
Definition at line 51 of file EchoServer.h. Referenced by Close(), CloseCont(), InitTCPConnection(), Listen(), ListenCont(), Receive(), ReceiveCont(), Send(), SendCont(), SetReceiveData(), and SetSendData(). |
|
Definition at line 50 of file EchoServer.h. Referenced by Close(), DoStart(), InitTCPConnection(), Listen(), Receive(), and Send(). |
|
Definition at line 28 of file EchoServer.h. |
|
Definition at line 27 of file EchoServer.h. |