#include <tcp.hpp>
Definition at line 30 of file tcp.hpp.
◆ DisconnectFunction
typedef void(* Tcp::DisconnectFunction) (void *obj) |
◆ ReadFunction
typedef void(* Tcp::ReadFunction) (void *obj, UINT8 *inputBuffer, UINT32 &numBytes) |
◆ Tcp()
◆ ~Tcp()
◆ close()
◆ getNumReadableBytes()
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.
◆ isClientConnected_unlocked()
bool Tcp::isClientConnected_unlocked |
( |
| ) |
|
|
private |
◆ isOpen()
True = offen
– Wir sind der Client und mit einem Server verbunden –
Definition at line 95 of file tcp.cpp.
◆ open() [1/2]
bool Tcp::open |
( |
std::string |
ipAddress, |
|
|
UINT16 |
port, |
|
|
bool |
enableVerboseDebugOutput = false |
|
) |
| |
◆ open() [2/2]
bool Tcp::open |
( |
UINT32 |
ipAddress, |
|
|
UINT16 |
port, |
|
|
bool |
enableVerboseDebugOutput = false |
|
) |
| |
◆ read()
◆ readInputData()
INT32 Tcp::readInputData |
( |
| ) |
|
|
private |
◆ readString()
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.
◆ readThreadFunction()
void Tcp::readThreadFunction |
( |
bool & |
endThread, |
|
|
UINT16 & |
waitTimeMs |
|
) |
| |
|
private |
◆ setDisconnectCallbackFunction()
◆ setReadCallbackFunction()
◆ startServerThread()
void Tcp::startServerThread |
( |
| ) |
|
|
private |
◆ stopReadThread()
void Tcp::stopReadThread |
( |
| ) |
|
|
private |
Stoppe den Lese-Thread.
Definition at line 358 of file tcp.cpp.
◆ stopServerThread()
void Tcp::stopServerThread |
( |
| ) |
|
|
private |
◆ write()
bool Tcp::write |
( |
UINT8 * |
buffer, |
|
|
UINT32 |
numberOfBytes |
|
) |
| |
◆ m_beVerbose
◆ m_connectionSocket
INT32 Tcp::m_connectionSocket |
|
private |
◆ m_disconnectFunction
◆ m_disconnectFunctionObjPtr
void* Tcp::m_disconnectFunctionObjPtr |
|
private |
◆ m_longStringWarningPrinted
bool Tcp::m_longStringWarningPrinted |
|
private |
◆ m_readFunction
◆ m_readFunctionObjPtr
void* Tcp::m_readFunctionObjPtr |
|
private |
◆ m_readThread
◆ m_rxBuffer
std::list<unsigned char> Tcp::m_rxBuffer |
|
private |
◆ m_rxString
std::string Tcp::m_rxString |
|
private |
◆ m_serverAddr
struct sockaddr_in Tcp::m_serverAddr |
|
private |
◆ m_socketMutex
The documentation for this class was generated from the following files: