1 #ifndef LIBSOCKET_STREAMCLIENT_H_4EF38CC5CAD740E6B7A55BCF4C48CCFA 2 #define LIBSOCKET_STREAMCLIENT_H_4EF38CC5CAD740E6B7A55BCF4C48CCFA 41 class dgram_over_stream;
65 ssize_t
snd(
const void* buf,
size_t len,
int flags = 0);
66 ssize_t
rcv(
void* buf,
size_t len,
int flags = 0);
76 void shutdown(
int method = LIBSOCKET_WRITE);
Contains libsocket elements.
ssize_t rcv(void *buf, size_t len, int flags=0)
Receive data from socket.
socket is the base class of every other libsocket++ object.
friend stream_client_socket & operator<<(stream_client_socket &sock, const char *str)
Send data to socket.
stream_client_socket()
Void constructor.
ssize_t snd(const void *buf, size_t len, int flags=0)
Send data to socket.
Wraps a stream socket and provides a message-based API on top of it.
Generic socket for active stream sockets (TCP client sockets, UNIX Stream clients)
void shutdown(int method=LIBSOCKET_WRITE)
Shut a socket down.
friend stream_client_socket & operator>>(stream_client_socket &sock, string &dest)
Receive data from socket to a string.