Inheritance diagram for Eaagles::Basic::LcTcpHandler:


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 LcTcpHandler * | acceptConnection () |
| 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 |
General TCP/IP I/O support class. Form name: TcpHandler
| 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 | |||
| ) |
| bool Eaagles::Basic::LcTcpHandler::sendData | ( | const char *const | packet, | |
| const int | size | |||
| ) | [virtual] |
| 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] |
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)
1.5.0