Namespace List > astutedds > platform
Public Types
Public Static Attributes
Public Functions
| Type |
Name |
| int |
close_socket (socket_t s)
|
| std::array< uint8_t, 4 > |
get_local_ip_address ()
|
| uint32_t |
get_process_id ()
|
| int |
getsockopt_portable (socket_t s, int level, int optname, T & optval)
|
| bool |
is_wouldblock ()
|
| void |
net_cleanup ()
|
| bool |
net_init ()
|
| int |
poll (pollfd_t * fds, unsigned long nfds, int timeout_ms)
|
| ssize_t |
recv_portable (socket_t s, void * buf, size_t len, int flags)
|
| ssize_t |
recvfrom_portable (socket_t s, void * buf, size_t len, int flags, struct sockaddr * from, socklen_t * fromlen)
|
| ssize_t |
send_portable (socket_t s, const void * buf, size_t len, int flags)
|
| ssize_t |
sendto_portable (socket_t s, const void * buf, size_t len, int flags, const struct sockaddr * to, socklen_t tolen)
|
| bool |
set_nonblocking (socket_t s)
|
| int |
setsockopt_portable (socket_t s, int level, int optname, const T & optval)
|
| int |
sock_errno ()
|
Public Types Documentation
typedef pollfd_t
using astutedds::platform::pollfd_t = typedef pollfd;
typedef socket_t
using astutedds::platform::socket_t = typedef int;
typedef ssize_t
using astutedds::platform::ssize_t = typedef ::ssize_t;
Public Static Attributes Documentation
variable INVALID_SOCK
constexpr socket_t astutedds::platform::INVALID_SOCK;
Public Functions Documentation
function close_socket
inline int astutedds::platform::close_socket (
socket_t s
)
function get_local_ip_address
inline std::array< uint8_t, 4 > astutedds::platform::get_local_ip_address ()
function get_process_id
inline uint32_t astutedds::platform::get_process_id ()
function getsockopt_portable
template<typename T>
inline int astutedds::platform::getsockopt_portable (
socket_t s,
int level,
int optname,
T & optval
)
function is_wouldblock
inline bool astutedds::platform::is_wouldblock ()
function net_cleanup
inline void astutedds::platform::net_cleanup ()
function net_init
inline bool astutedds::platform::net_init ()
function poll
inline int astutedds::platform::poll (
pollfd_t * fds,
unsigned long nfds,
int timeout_ms
)
function recv_portable
inline ssize_t astutedds::platform::recv_portable (
socket_t s,
void * buf,
size_t len,
int flags
)
function recvfrom_portable
inline ssize_t astutedds::platform::recvfrom_portable (
socket_t s,
void * buf,
size_t len,
int flags,
struct sockaddr * from,
socklen_t * fromlen
)
function send_portable
inline ssize_t astutedds::platform::send_portable (
socket_t s,
const void * buf,
size_t len,
int flags
)
function sendto_portable
inline ssize_t astutedds::platform::sendto_portable (
socket_t s,
const void * buf,
size_t len,
int flags,
const struct sockaddr * to,
socklen_t tolen
)
function set_nonblocking
inline bool astutedds::platform::set_nonblocking (
socket_t s
)
function setsockopt_portable
template<typename T>
inline int astutedds::platform::setsockopt_portable (
socket_t s,
int level,
int optname,
const T & optval
)
function sock_errno
inline int astutedds::platform::sock_errno ()
The documentation for this class was generated from the following file include/astutedds/platform.hpp