21 #include <sys/socket.h> 22 #include <sys/types.h> 29 #define MAX_SERVER_BUF_LEN 50 38 virtual bool open(
int socket_fd,
struct sockaddr *address,
size_t address_len);
47 bool readLine(
char *buffer,
size_t buf_len);
48 bool write(
const uint8_t *buf,
size_t buf_len,
size_t &written);
virtual bool open(int socket_fd, struct sockaddr *address, size_t address_len)
bool readLine(char *buffer, size_t buf_len)
bool write(const uint8_t *buf, size_t buf_len, size_t &written)