|
cppnet
C++ network utilities for asynchronous servers.
|
A read context. More...
#include <net/service/async_udp_service.hpp>
Public Types | |
| using | buffer_type = std::array< std::byte, Size > |
| The read buffer type. | |
| using | socket_address = io::socket::socket_address< sockaddr_in6 > |
| Socket address type. | |
| using | socket_message = io::socket::socket_message< sockaddr_in6 > |
| The socket message type. | |
Public Attributes | |
| buffer_type | read_buffer {} |
| The read buffer. | |
| std::span< std::byte > | buffer {read_buffer} |
| An assignable read buffer span. | |
| socket_message | msg {.address = socket_address{}, .buffers = buffer} |
| The read socket message. | |
A read context.
| using net::service::async_udp_service< UDPStreamHandler, Size >::read_context::socket_address = io::socket::socket_address<sockaddr_in6> |
Socket address type.
sockaddr_in6 is a large enough type to store both ipv4 and ipv6 socket address details.
| using net::service::async_udp_service< UDPStreamHandler, Size >::read_context::socket_message = io::socket::socket_message<sockaddr_in6> |
The socket message type.
sockaddr_in6 is a large enough type to store both ipv4 and ipv6 socket address details.