20 #include <sys/socket.h> 21 #include <arpa/inet.h> 37 bool open(std::string ipAddress,
UINT16 port,
bool enableVerboseDebugOutput =
false);
38 bool open(
UINT32 ipAddress,
UINT16 port,
bool enableVerboseDebugOutput =
false);
UINT32 getNumReadableBytes()
bool m_longStringWarningPrinted
struct sockaddr_in m_serverAddr
void(* DisconnectFunction)(void *obj)
void * m_disconnectFunctionObjPtr
bool write(UINT8 *buffer, UINT32 numberOfBytes)
SickThread< Tcp,&Tcp::readThreadFunction > m_readThread
std::list< unsigned char > m_rxBuffer
void readThreadFunction(bool &endThread, UINT16 &waitTimeMs)
bool open(std::string ipAddress, UINT16 port, bool enableVerboseDebugOutput=false)
void * m_readFunctionObjPtr
ReadFunction m_readFunction
void(* ReadFunction)(void *obj, UINT8 *inputBuffer, UINT32 &numBytes)
DisconnectFunction m_disconnectFunction
std::string readString(UINT8 delimiter)
bool isClientConnected_unlocked()
UINT32 read(UINT8 *buffer, UINT32 bufferLen)
void setReadCallbackFunction(ReadFunction readFunction, void *obj)
void setDisconnectCallbackFunction(DisconnectFunction discFunction, void *obj)