#include <NetInterface.h>
Collaboration diagram for NetInterface:

Definition at line 16 of file NetInterface.h.
Public Member Functions | |
| NetInterface (const char *_ip, int _port) throw (NetInterfaceException) | |
| NetInterface (const NetInterface &net) throw (NetInterfaceException) | |
| void | listen () throw (NetInterfaceException) |
| void | acceptConnection () throw (NetInterfaceException) |
| void | connectTo () throw (NetInterfaceException) |
| void | close () |
| void | down () |
| int | write () |
| int | read (const int BUFFER_SIZE) |
| int | readWithTimeout (const int BUFFER_SIZE, int timeoutMillis) |
| void | writeToBuffer (std::string in) |
| std::string | readFromBuffer () |
| void | clearBuffer () |
| std::string | getClientIP () |
| std::string | getClientPort () |
| int | getOutDescr () |
Static Public Attributes | |
| static const int | NO_DATA_UNTIL_TIMEOUT = -2 |
Private Attributes | |
| int | inDescr |
| int | outDescr |
| in_addr | ip |
| u_int16_t | port |
| sockaddr_in | clientAddr |
| std::string | readbuffer |
| std::string | writebuffer |
Static Private Attributes | |
| static const int | QUEUE = 10 |
1.5.1