Public Member Functions |
virtual bool | Init ()=0 |
virtual bool | Bind (const IPV4SocketAddress &endpoint)=0 |
bool | Bind (const IPV4Address &ip, unsigned short port) |
virtual bool | GetSocketAddress (IPV4SocketAddress *address) const =0 |
virtual bool | Close ()=0 |
virtual int | ReadDescriptor () const =0 |
virtual int | WriteDescriptor () const =0 |
virtual ssize_t | SendTo (const uint8_t *buffer, unsigned int size, const IPV4Address &ip, unsigned short port) const =0 |
virtual ssize_t | SendTo (const uint8_t *buffer, unsigned int size, const IPV4SocketAddress &dest) const =0 |
virtual ssize_t | SendTo (ola::io::IOVecInterface *data, const IPV4Address &ip, unsigned short port) const =0 |
virtual ssize_t | SendTo (ola::io::IOVecInterface *data, const IPV4SocketAddress &dest) const =0 |
virtual bool | RecvFrom (uint8_t *buffer, ssize_t *data_read) const =0 |
virtual bool | RecvFrom (uint8_t *buffer, ssize_t *data_read, IPV4Address &source) const =0 |
virtual bool | RecvFrom (uint8_t *buffer, ssize_t *data_read, IPV4Address &source, uint16_t &port) const =0 |
virtual bool | EnableBroadcast ()=0 |
virtual bool | SetMulticastInterface (const IPV4Address &iface)=0 |
virtual bool | JoinMulticast (const IPV4Address &iface, const IPV4Address &group, bool loop=false)=0 |
virtual bool | LeaveMulticast (const IPV4Address &iface, const IPV4Address &group)=0 |
virtual bool | SetTos (uint8_t tos)=0 |
void | SetOnData (ola::Callback0< void > *on_read) |
void | SetOnWritable (ola::Callback0< void > *on_write) |
void | PerformRead () |
void | PerformWrite () |
bool | ValidReadDescriptor () const |
bool | ValidWriteDescriptor () const |