|
Public Types |
enum | CallbackMode { ClientMode,
IovecMode,
RopeMode
} |
Public Member Functions |
| MNUDPSocket (MNSocket &orig, int copyflags) |
| MNUDPSocket (CallbackSetting cm, MNSocket &orig, int copyflags) |
| MNUDPSocket (CallbackSetting cm) |
| MNUDPSocket (CallbackSetting cm, int sockfd) |
virtual | ~MNUDPSocket () |
virtual void | callback (MNSelector *select, int fd) |
virtual bool | isUdp () const |
bool | join_mc (int port, const char *hostname, char *ifnamei, int onoff) |
virtual struct iovec * | set_buffers (int &iovlen) |
virtual void | unset_buffers (struct iovec *iov, int iovlen) |
MNRope * | buffers_to_rope (struct iovec *iov, int &iovlen, size_t bytesused) |
int | recvfrom (char *buffer, int buflen) |
int | recvfrom (char *buffer, int buflen, struct sockaddr_in &sock_addr, unsigned &sock_size) |
int | sendto (const void *buf, int buflen, const struct sockaddr_in *server_addr) |
int | sendto (const char *buff, int len, int port, const char *hostname) |
virtual int | reader (struct iovec *iov, int len, struct sockaddr_in *&dest)=0 |
virtual void | writer ()=0 |
virtual int | reader (MNRope *&rope, struct sockaddr_in *&dest)=0 |
void | connect (int port, char *hostname) |
Protected Member Functions |
CallbackMode | cm () const |