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

Public Member Functions

bool Init ()
bool Bind (const IPV4SocketAddress &endpoint)
bool GetSocketAddress (IPV4SocketAddress *address) const
bool Close ()
ola::io::DescriptorHandle ReadDescriptor () const
ola::io::DescriptorHandle WriteDescriptor () const
ssize_t SendTo (const uint8_t *buffer, unsigned int size, const IPV4Address &ip, unsigned short port) const
ssize_t SendTo (const uint8_t *buffer, unsigned int size, const IPV4SocketAddress &dest) const
ssize_t SendTo (ola::io::IOVecInterface *data, const IPV4Address &ip, unsigned short port) const
ssize_t SendTo (ola::io::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, IPV4Address &source) const
bool RecvFrom (uint8_t *buffer, ssize_t *data_read, IPV4Address &source, uint16_t &port) const
bool EnableBroadcast ()
bool SetMulticastInterface (const IPV4Address &iface)
bool JoinMulticast (const IPV4Address &iface, const IPV4Address &group, bool loop=false)
bool LeaveMulticast (const IPV4Address &iface, const IPV4Address &group)
bool SetTos (uint8_t tos)
- Public Member Functions inherited from ola::network::UDPSocketInterface
bool Bind (const IPV4Address &ip, unsigned short port)
- 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

Member Function Documentation

bool ola::network::UDPSocket::GetSocketAddress ( IPV4SocketAddress address) const
virtual

Returns the local address for this socket

Implements ola::network::UDPSocketInterface.

bool ola::network::UDPSocket::SetMulticastInterface ( const IPV4Address iface)
virtual

Set the outgoing interface to be used for multicast transmission

Implements ola::network::UDPSocketInterface.


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