EchoClient Class Reference

#include <EchoClient.h>

List of all members.

Public Member Functions

 EchoClient ()
virtual ~EchoClient ()
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 ConnectCont (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 Connect (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 [ECHOCLIENT_CONNECTION_MAX]


Constructor & Destructor Documentation

EchoClient::EchoClient  ) 
 

Definition at line 21 of file EchoClient.cc.

virtual EchoClient::~EchoClient  )  [inline, virtual]
 

Definition at line 25 of file EchoClient.h.


Member Function Documentation

OStatus EchoClient::Close int  index  )  [private]
 

Definition at line 195 of file EchoClient.cc.

References connection, CONNECTION_CLOSED, ipstackRef, and TCPConnection::state.

Referenced by ReceiveCont(), and SendCont().

void EchoClient::CloseCont ANTENVMSG  msg  ) 
 

Definition at line 214 of file EchoClient.cc.

References connection, and TCPConnection::state.

OStatus EchoClient::Connect int  index  )  [private]
 

Definition at line 63 of file EchoClient.cc.

References connection, ECHOSERVER_IP, ECHOSERVER_PORT, IP_ADDR_ANY(), ipstackRef, and TCPConnection::state.

Referenced by DoStart().

void EchoClient::ConnectCont ANTENVMSG  msg  ) 
 

Definition at line 84 of file EchoClient.cc.

References connection, Send(), SetSendData(), and TCPConnection::state.

OStatus EchoClient::DoDestroy const OSystemEvent &  event  )  [virtual]
 

Definition at line 57 of file EchoClient.cc.

OStatus EchoClient::DoInit const OSystemEvent &  event  )  [virtual]
 

Definition at line 26 of file EchoClient.cc.

OStatus EchoClient::DoStart const OSystemEvent &  event  )  [virtual]
 

Definition at line 33 of file EchoClient.cc.

References Connect(), InitTCPConnection(), and ipstackRef.

OStatus EchoClient::DoStop const OSystemEvent &  event  )  [virtual]
 

Definition at line 50 of file EchoClient.cc.

OStatus EchoClient::InitTCPConnection int  index  )  [private]
 

Definition at line 226 of file EchoClient.cc.

References byte, connection, ECHOCLIENT_BUFFER_SIZE, TCPConnection::endpoint, ipstackRef, TCPConnection::recvBuffer, TCPConnection::recvData, TCPConnection::sendBuffer, TCPConnection::sendData, and TCPConnection::state.

Referenced by DoStart().

OStatus EchoClient::Receive int  index  )  [private]
 

Definition at line 153 of file EchoClient.cc.

References connection, CONNECTION_CONNECTED, ipstackRef, and TCPConnection::state.

Referenced by SendCont().

void EchoClient::ReceiveCont ANTENVMSG  msg  ) 
 

Definition at line 172 of file EchoClient.cc.

References Close(), connection, Send(), and SetSendData().

OStatus EchoClient::Send int  index  )  [private]
 

Definition at line 107 of file EchoClient.cc.

References connection, ipstackRef, TCPConnection::sendSize, and TCPConnection::state.

Referenced by ConnectCont(), and ReceiveCont().

void EchoClient::SendCont ANTENVMSG  msg  ) 
 

Definition at line 129 of file EchoClient.cc.

References Close(), connection, Receive(), SetReceiveData(), and TCPConnection::state.

void EchoClient::SetReceiveData int  index  )  [private]
 

Definition at line 297 of file EchoClient.cc.

References connection, and TCPConnection::recvSize.

Referenced by SendCont().

void EchoClient::SetSendData int  index  )  [private]
 

Definition at line 290 of file EchoClient.cc.

References connection, ECHOCLIENT_MESSAGE, and TCPConnection::sendSize.

Referenced by ConnectCont(), and ReceiveCont().


Member Data Documentation

TCPConnection EchoClient::connection[ECHOCLIENT_CONNECTION_MAX] [private]
 

Definition at line 51 of file EchoClient.h.

Referenced by Close(), CloseCont(), Connect(), ConnectCont(), InitTCPConnection(), Receive(), ReceiveCont(), Send(), SendCont(), SetReceiveData(), and SetSendData().

antStackRef EchoClient::ipstackRef [private]
 

Definition at line 50 of file EchoClient.h.

Referenced by Close(), Connect(), DoStart(), InitTCPConnection(), Receive(), and Send().

OObserver* EchoClient::observer[numOfObserver]
 

Definition at line 28 of file EchoClient.h.

OSubject* EchoClient::subject[numOfSubject]
 

Definition at line 27 of file EchoClient.h.


The documentation for this class was generated from the following files:
Generated on Sun Dec 2 23:04:33 2007 for openSDK by  doxygen 1.3.9.1