Open Lighting Architecture  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ola::network::UDPSocketInterface Class Reference
Inheritance diagram for ola::network::UDPSocketInterface:
ola::io::BidirectionalFileDescriptor ola::io::ReadFileDescriptor ola::io::WriteFileDescriptor ola::network::UDPSocket ola::testing::MockUDPSocket

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
- Public Member Functions inherited from ola::io::BidirectionalFileDescriptor
void SetOnData (ola::Callback0< void > *on_read)
void SetOnWritable (ola::Callback0< void > *on_write)
void PerformRead ()
void PerformWrite ()
- Public Member Functions inherited from ola::io::ReadFileDescriptor
bool ValidReadDescriptor () const
- Public Member Functions inherited from ola::io::WriteFileDescriptor
bool ValidWriteDescriptor () const

The documentation for this class was generated from the following file: