#include <tcp.hpp>
Definition at line 30 of file tcp.hpp.
typedef void(* Tcp::DisconnectFunction) (void *obj) |
typedef void(* Tcp::ReadFunction) (void *obj, UINT8 *inputBuffer, UINT32 &numBytes) |
UINT32 Tcp::getNumReadableBytes |
( |
| ) |
|
Auslesen der Anzahl zum Lesen verfuegbarer Bytes.
Rueckgabe: Anzahl der Bytes im Lese-Puffer.
Definition at line 375 of file tcp.cpp.
bool Tcp::isClientConnected_unlocked |
( |
| ) |
|
|
private |
True = offen
– Wir sind der Client und mit einem Server verbunden –
Definition at line 95 of file tcp.cpp.
bool Tcp::open |
( |
std::string |
ipAddress, |
|
|
UINT16 |
port, |
|
|
bool |
enableVerboseDebugOutput = false |
|
) |
| |
bool Tcp::open |
( |
UINT32 |
ipAddress, |
|
|
UINT16 |
port, |
|
|
bool |
enableVerboseDebugOutput = false |
|
) |
| |
INT32 Tcp::readInputData |
( |
| ) |
|
|
private |
std::string Tcp::readString |
( |
UINT8 |
delimiter | ) |
|
Lese einen String, bis zum Trennzeichen.
** DO NOT INTERMIX WITH CALLS TO READ() **
Definition at line 410 of file tcp.cpp.
void Tcp::readThreadFunction |
( |
bool & |
endThread, |
|
|
UINT16 & |
waitTimeMs |
|
) |
| |
|
private |
void Tcp::startServerThread |
( |
| ) |
|
|
private |
void Tcp::stopReadThread |
( |
| ) |
|
|
private |
Stoppe den Lese-Thread.
Definition at line 358 of file tcp.cpp.
void Tcp::stopServerThread |
( |
| ) |
|
|
private |
bool Tcp::write |
( |
UINT8 * |
buffer, |
|
|
UINT32 |
numberOfBytes |
|
) |
| |
INT32 Tcp::m_connectionSocket |
|
private |
void* Tcp::m_disconnectFunctionObjPtr |
|
private |
bool Tcp::m_longStringWarningPrinted |
|
private |
void* Tcp::m_readFunctionObjPtr |
|
private |
std::list<unsigned char> Tcp::m_rxBuffer |
|
private |
std::string Tcp::m_rxString |
|
private |
struct sockaddr_in Tcp::m_serverAddr |
|
private |
The documentation for this class was generated from the following files: