Class ILLIXR::network::UDPSocket
ClassList > ILLIXR > network > UDPSocket
#include <udpsocket.hpp>
Public Functions
| Type | Name |
|---|---|
| UDPSocket () |
|
| bool | has_peer () const |
| std::string | local_address () const |
| std::string | read_data (sockaddr_in * src_addr=nullptr) const |
| void | set_peer (const std::string & ip, int port) |
| void | set_peer (const sockaddr_in & addr) |
| void | socket_bind (const std::string & ip, int port) const |
| void | socket_bind (int port) const |
| void | socket_set_receive_timeout (int milliseconds) const |
| void | socket_set_reuseaddr () const |
| void | socket_shutdown () noexcept const |
| bool | write_data (const std::string & buffer) const |
| bool | write_data_to (const std::string & buffer, const sockaddr_in & dest) const |
| ~UDPSocket () |
Public Functions Documentation
function UDPSocket
inline ILLIXR::network::UDPSocket::UDPSocket ()
function has_peer
inline bool ILLIXR::network::UDPSocket::has_peer () const
function local_address
inline std::string ILLIXR::network::UDPSocket::local_address () const
function read_data
inline std::string ILLIXR::network::UDPSocket::read_data (
sockaddr_in * src_addr=nullptr
) const
function set_peer [1/2]
inline void ILLIXR::network::UDPSocket::set_peer (
const std::string & ip,
int port
)
function set_peer [2/2]
inline void ILLIXR::network::UDPSocket::set_peer (
const sockaddr_in & addr
)
function socket_bind [1/2]
inline void ILLIXR::network::UDPSocket::socket_bind (
const std::string & ip,
int port
) const
function socket_bind [2/2]
inline void ILLIXR::network::UDPSocket::socket_bind (
int port
) const
function socket_set_receive_timeout
inline void ILLIXR::network::UDPSocket::socket_set_receive_timeout (
int milliseconds
) const
Bound the time a receive thread can remain asleep so plugin shutdown can join it even when the peer is no longer sending datagrams.
function socket_set_reuseaddr
inline void ILLIXR::network::UDPSocket::socket_set_reuseaddr () const
function socket_shutdown
inline void ILLIXR::network::UDPSocket::socket_shutdown () noexcept const
Interrupt a blocking receive when supported. The receive timeout above remains the fallback for unconnected UDP sockets.
function write_data
inline bool ILLIXR::network::UDPSocket::write_data (
const std::string & buffer
) const
function write_data_to
inline bool ILLIXR::network::UDPSocket::write_data_to (
const std::string & buffer,
const sockaddr_in & dest
) const
function ~UDPSocket
inline ILLIXR::network::UDPSocket::~UDPSocket ()
The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR/illixr_release/ILLIXR/include/illixr/network/udpsocket.hpp