C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::net::network_socket Struct Reference

A bidirectional network communication endpoint. More...

#include <network_socket.hpp>

Inheritance diagram for caf::net::network_socket:
caf::net::socket caf::detail::comparable< socket > caf::net::datagram_socket caf::net::stream_socket caf::net::tcp_accept_socket caf::net::udp_datagram_socket caf::net::tcp_stream_socket

Public Types

using super = socket
 

Related Symbols

(Note that these are not member symbols.)

error CAF_NET_EXPORT allow_sigpipe (network_socket x, bool new_value)
 Enables or disables SIGPIPE events from x.
 
error CAF_NET_EXPORT allow_udp_connreset (network_socket x, bool new_value)
 Enables or disables SIO_UDP_CONNRESETerror on x.
 
expected< size_t > CAF_NET_EXPORT send_buffer_size (network_socket x)
 Get the socket buffer size for x.
 
error CAF_NET_EXPORT send_buffer_size (network_socket x, size_t capacity)
 Set the socket buffer size for x.
 
expected< uint16_t > CAF_NET_EXPORT local_port (network_socket x)
 Returns the locally assigned port of x.
 
expected< std::string > CAF_NET_EXPORT local_addr (network_socket x)
 Returns the locally assigned address of x.
 
expected< uint16_t > CAF_NET_EXPORT remote_port (network_socket x)
 Returns the port used by the remote host of x.
 
expected< std::string > CAF_NET_EXPORT remote_addr (network_socket x)
 Returns the remote host address of x.
 
error CAF_NET_EXPORT keepalive (stream_socket x, bool new_value)
 Enables or disables keepalive on x.
 

Additional Inherited Members

- Public Member Functions inherited from caf::net::socket
constexpr socket (socket_id id) noexcept
 
constexpr socket (const socket &other) noexcept=default
 
socketoperator= (const socket &other) noexcept=default
 
constexpr signed_socket_id compare (socket other) const noexcept
 
constexpr operator bool () const noexcept
 
constexpr bool operator! () const noexcept
 
constexpr socket fd () const noexcept
 
- Public Attributes inherited from caf::net::socket
socket_id id
 

Detailed Description

A bidirectional network communication endpoint.

Friends And Related Symbol Documentation

◆ send_buffer_size()

expected< size_t > CAF_NET_EXPORT send_buffer_size ( network_socket x)
related

Get the socket buffer size for x.

Precondition
x != invalid_socket

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