1 #ifndef LIBSOCKET_INETDGRAM_H_DD09F601418D47C8893DB605109E3E03 2 #define LIBSOCKET_INETDGRAM_H_DD09F601418D47C8893DB605109E3E03 11 #include <sys/socket.h> 12 #include <sys/types.h> 64 ssize_t
sndto(
const void* buf,
size_t len,
const char* dsthost,
65 const char* dstport,
int sndto_flags = 0);
66 ssize_t
sndto(
const void* buf,
size_t len,
const string& dsthost,
67 const string& dstport,
int sndto_flags = 0);
69 ssize_t
sndto(
const string& buf,
const string& dsthost,
70 const string& dstport,
int sndto_flags = 0);
73 ssize_t
rcvfrom(
void* buf,
size_t len,
char* srchost,
size_t hostlen,
74 char* srcport,
size_t portlen,
int rcvfrom_flags = 0,
75 bool numeric =
false);
76 ssize_t
rcvfrom(
void* buf,
size_t len,
string& srchost,
string& srcport,
77 int rcvfrom_flags = 0,
bool numeric =
false);
79 ssize_t
rcvfrom(
string& buf,
string& srchost,
string& srcport,
80 int rcvfrom_flags = 0,
bool numeric =
false);
Contains libsocket elements.
Internet-socket base class This class provides some fields for all internet sockets,...
ssize_t rcvfrom(void *buf, size_t len, char *srchost, size_t hostlen, char *srcport, size_t portlen, int rcvfrom_flags=0, bool numeric=false)
Receives data from peer.
Base class for UDP/IP sockets.
ssize_t sndto(const void *buf, size_t len, const char *dsthost, const char *dstport, int sndto_flags=0)
Send data to UDP peer.