16 #ifndef _RL_UDP_SOCKET_H_ 17 #define _RL_UDP_SOCKET_H_ 27 #define MSG_NOSIGNAL 0 30 #include <sys/socket.h> 31 #include <netinet/in.h> 32 #include <arpa/inet.h> 45 int setAdr(
const char *adr,
int port);
67 int setSockopt(
int level,
int optname,
void *optval,
int optlen);
int recvfrom(void *buf, int maxlen, rlIpAdr *source, int timeout=-1)
int printf(rlIpAdr *dest, const char *format,...)
int setAdr(const char *adr, int port)
int operator==(rlIpAdr &address1)
struct sockaddr_in address
int sendto(const void *buf, int len, rlIpAdr *dest)
struct sockaddr_in address