Public Member Functions |
bool | Init () |
bool | Bind (const ola::network::IPV4SocketAddress &endpoint) |
bool | GetSocketAddress (IPV4SocketAddress *address) const |
bool | Close () |
int | ReadDescriptor () const |
int | WriteDescriptor () const |
ssize_t | SendTo (const uint8_t *buffer, unsigned int size, const ola::network::IPV4Address &ip, unsigned short port) const |
ssize_t | SendTo (const uint8_t *buffer, unsigned int size, const IPV4SocketAddress &dest) const |
ssize_t | SendTo (IOVecInterface *data, const ola::network::IPV4Address &ip, unsigned short port) const |
ssize_t | SendTo (IOVecInterface *data, const IPV4SocketAddress &dest) const |
bool | RecvFrom (uint8_t *buffer, ssize_t *data_read) const |
bool | RecvFrom (uint8_t *buffer, ssize_t *data_read, ola::network::IPV4Address &source) const |
bool | RecvFrom (uint8_t *buffer, ssize_t *data_read, ola::network::IPV4Address &source, uint16_t &port) const |
bool | EnableBroadcast () |
bool | SetMulticastInterface (const IPV4Address &interface) |
bool | JoinMulticast (const IPV4Address &interface, const IPV4Address &group, bool loop=false) |
bool | LeaveMulticast (const IPV4Address &interface, const IPV4Address &group) |
bool | SetTos (uint8_t tos) |
void | SetDiscardMode (bool discard_mode) |
void | AddExpectedData (const uint8_t *data, unsigned int size, const IPV4Address &ip, uint16_t port) |
void | AddExpectedData (IOQueue *queue, const IPV4SocketAddress &dest) |
void | InjectData (const uint8_t *data, unsigned int size, const IPV4Address &ip, uint16_t port) |
void | InjectData (const uint8_t *data, unsigned int size, const IPV4SocketAddress &source) |
void | InjectData (IOQueue *ioqueue, const IPV4SocketAddress &source) |
void | Verify () |
bool | CheckNetworkParamsMatch (bool init_called, bool bound_to_port, uint16_t port, bool broadcast_set) |
void | SetInterface (const IPV4Address &interface) |
bool | Bind (const IPV4Address &ip, unsigned short port) |
void | SetOnData (ola::Callback0< void > *on_read) |
void | SetOnWritable (ola::Callback0< void > *on_write) |
void | PerformRead () |
void | PerformWrite () |
bool | ValidReadDescriptor () const |
bool | ValidWriteDescriptor () const |