25#ifndef PDCOM5_POSIXPROCESS_H
26#define PDCOM5_POSIXPROCESS_H
30#include <pdcom5_export.h>
142 std::shared_ptr<Impl> impl_;
PosixProcess(int fd)
Constructor.
PosixProcess(const char *host, unsigned short port)
Constructor.
void posixFlush()
Flush internal buffer to socket.
void posixWriteBuffered(const char *buf, size_t count)
Buffered Wrapper for write().
int fd_
File descriptior of the socket.
Definition PosixProcess.h:71
void setWriteTimeout(std::chrono::milliseconds ms)
Timeout for posixWriteDirect() in non-blocking mode.
void posixWriteDirect(const char *buf, size_t count)
Unbuffered Wrapper for write().
int posixRead(char *buf, int count)
Wrapper for read().
void reconnect(const char *host, unsigned short port)
Establish a new connection.