Class Tcp

Class Documentation

class Tcp

Public Types

typedef void (*ReadFunction)(void *obj, UINT8 *inputBuffer, UINT32 &numBytes)
typedef void (*DisconnectFunction)(void *obj)

Public Functions

Tcp()
~Tcp()
bool open(std::string ipAddress, UINT16 port, bool enableVerboseDebugOutput = false)
bool open(UINT32 ipAddress, UINT16 port, bool enableVerboseDebugOutput = false)
void close()
bool isOpen()
bool write(UINT8 *buffer, UINT32 numberOfBytes)
std::string readString(UINT8 delimiter)
UINT32 getNumReadableBytes()
UINT32 read(UINT8 *buffer, UINT32 bufferLen)
void setReadCallbackFunction(ReadFunction readFunction, void *obj)
void setDisconnectCallbackFunction(DisconnectFunction discFunction, void *obj)
inline uint64_t getNanosecTimestampLastTcpMessageReceived(void)