37 TcpClient(
const std::string & hostname,
int port,
int timeoutInMillisecons = 0);
50 void connect(
const std::string & hostname,
int port,
int timeoutInMillisecons = 0);
61 void noDelay(
bool setTcpNoDelayOption);
67 int receiveBufferSize()
const;
70 void receiveBufferSize(
int size);
73 int sendBufferSize()
const;
76 void sendBufferSize(
int size);
84 void send(
const std::string & value);
87 void send(
const void * buffer,
size_t bufferLength);
92 const Bytes & receive(
int timeoutInMillisecons = 0);
98 const Bytes & receive(
size_t numberOfBytesToReceive,
int timeoutInMillisecons = 0);
virtual void close(bool keepSequenceNumbers, bool doBackup)=0
Closes the storage.
int Handle
Type alias for socket handle.
std::vector< Byte > Bytes
Sequence of bytes.
#define ONIXS_FIXENGINE_API
static const Handle InvalidSocketHandle
Provides client connections for TCP network services.