Eaagles::Basic::LcTcpHandler Class Reference

Inherits Eaagles::Basic::LcNetHandler.

Inheritance diagram for Eaagles::Basic::LcTcpHandler:

Inheritance graph
[legend]
Collaboration diagram for Eaagles::Basic::LcTcpHandler:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LcTcpHandler ()
 LcTcpHandler (const char *const ip, const short port, const short source)
 LcTcpHandler (int sock, struct sockaddr_in *address)
virtual bool sendData (const char *const packet, const int size)
virtual bool init ()
virtual bool listenForConnections ()
virtual LcTcpHandleracceptConnection ()
virtual bool connectToHost ()
virtual bool closeConnection ()
int getConnectionAttempts ()
bool isConnected ()
void resetConnectionAttempts ()
const char * getIpAddress ()
bool hasBeenTerminated ()

Protected Member Functions

bool setSlotIpAddress (LcString *const msg)

Private Attributes

char * ipAddr
int attempts
bool connected
bool connectionTerminated

Detailed Description

General TCP/IP I/O support class.
   Form name: TcpHandler


Constructor & Destructor Documentation

Eaagles::Basic::LcTcpHandler::LcTcpHandler (  ) 

Eaagles::Basic::LcTcpHandler::LcTcpHandler ( const char *const  ip,
const short  port,
const short  source 
)

Eaagles::Basic::LcTcpHandler::LcTcpHandler ( int  sock,
struct sockaddr_in *  address 
)


Member Function Documentation

bool Eaagles::Basic::LcTcpHandler::sendData ( const char *const  packet,
const int  size 
) [virtual]

Send data.

Reimplemented from Eaagles::Basic::LcNetHandler.

bool Eaagles::Basic::LcTcpHandler::init (  )  [virtual]

init the multicast socket (called by the constructor)

Reimplemented from Eaagles::Basic::LcNetHandler.

bool Eaagles::Basic::LcTcpHandler::listenForConnections (  )  [virtual]

LcTcpHandler * Eaagles::Basic::LcTcpHandler::acceptConnection (  )  [virtual]

bool Eaagles::Basic::LcTcpHandler::connectToHost (  )  [virtual]

bool Eaagles::Basic::LcTcpHandler::closeConnection (  )  [virtual]

int Eaagles::Basic::LcTcpHandler::getConnectionAttempts (  )  [inline]

Returns the number of connection attempts.

bool Eaagles::Basic::LcTcpHandler::isConnected (  )  [inline]

Returns true if connected.

void Eaagles::Basic::LcTcpHandler::resetConnectionAttempts (  )  [inline]

Resets the number of connection attempts to 0.

const char* Eaagles::Basic::LcTcpHandler::getIpAddress (  )  [inline]

Returns the IP address.

bool Eaagles::Basic::LcTcpHandler::hasBeenTerminated (  )  [inline]

true if we had a connection, then lost it (or terminated it ourselves)

bool Eaagles::Basic::LcTcpHandler::setSlotIpAddress ( LcString *const  msg  )  [protected]


Member Data Documentation

char* Eaagles::Basic::LcTcpHandler::ipAddr [private]

IP Address.

int Eaagles::Basic::LcTcpHandler::attempts [private]

The number of connection attempts.

bool Eaagles::Basic::LcTcpHandler::connected [private]

true if we are connected

bool Eaagles::Basic::LcTcpHandler::connectionTerminated [private]

true if we had a connection, then lost it (or terminated it ourselves)


Generated on Tue Dec 19 16:26:31 2006 for Eaagles by  doxygen 1.5.0