1 #ifndef LIBSOCKET_DGRAMCLIENT_H_A6969EEDFC57408B89EA3E965C00E811 2 #define LIBSOCKET_DGRAMCLIENT_H_A6969EEDFC57408B89EA3E965C00E811 68 ssize_t
snd(
const void* buf,
size_t len,
int flags = 0);
74 ssize_t
rcv(
void* buf,
size_t len,
int flags = 0);
Contains libsocket elements.
ssize_t snd(const void *buf, size_t len, int flags=0)
Send data to connected socket.
Represents a generic "client" datagram socket, i.e. a datagram socket which can be connected.
socket is the base class of every other libsocket++ object.
ssize_t rcv(void *buf, size_t len, int flags=0)
Receive data from a connected DGRAM socket.
friend dgram_client_socket & operator>>(dgram_client_socket &sock, string &dest)
Receive data from connected datagram socket.
bool is_connected(void) const
friend dgram_client_socket & operator<<(dgram_client_socket &sock, const char *str)
Send data to connected peer.