18 typedef unsigned int socklen_t;
41 socklen_t pa_len = peer_addr_->
getLength();
45 #if defined (__CYGWIN32__) || defined (WIN32)
60 sendto (
const char* buf_,
const unsigned int size_,
const Address* peer_addr_)
Class UnConUPDSocket class is unconnected UDP socket.
virtual SA * getAddress() const =0
Retrieve pointer to the address structure.
virtual const int getLength() const =0
Return length of the underlying address structure.
handler_t getHandler() const
Get socket file descriptor.
int recvfrom(char *buf_, int size_, Address *peer_addr_)
recvfrom() function receives a message from connectionless-mode socket.
int sendto(const char *buf_, const unsigned int size_, const Address *dest_addr_)
sendto() function sends a message through connectionless-mode socket.