mn_basic_dgram_socket.hpp
Go to the documentation of this file.
56 int send_to(char* buffer, int size, endpoint_type& ep, const socket_flags& socketFlags = socket_flags::none)
68 int recive_from(char* buffer, int size, endpoint_type* ep, const socket_flags& socketFlags = socket_flags::none)
80 int recive_from(char* buffer, int offset, int size, const socket_flags& socketFlags, endpoint_type* ep);
92 int send_to(char* buffer, int offset, int size, const socket_flags& socketFlags, endpoint_type& ep);
142 int send_to(char* buffer, int size, endpoint_type* ep, socket_flags socketFlags = socket_flags::none)
154 int recive_from(char* buffer, int size, endpoint_type* ep, socket_flags socketFlags = socket_flags::none)
166 int recive_from(char* buffer, int offset, int size, socket_flags socketFlags, endpoint_type* ep);
A buffer class that allocates a buffer of a given type and size.
Definition: mn_buffer.hpp:37
typename base_type::endpoint_type endpoint_type
Definition: mn_basic_dgram_socket.hpp:126
basic_dgram_ip6_socket(handle_type &hndl, endpoint_type *endp=nullptr)
Definition: mn_basic_dgram_socket.hpp:181
typename base_type::handle_type handle_type
Definition: mn_basic_dgram_socket.hpp:128
int send_to(char *buffer, int size, endpoint_type *ep, socket_flags socketFlags=socket_flags::none)
send a buffer of data to the given enpoint
Definition: mn_basic_dgram_socket.hpp:142
int recive_from(char *buffer, int size, endpoint_type *ep, socket_flags socketFlags=socket_flags::none)
recive a buffer of data
Definition: mn_basic_dgram_socket.hpp:154
basic_dgram_ip6_socket(const protocol_type &protocol)
Definition: mn_basic_dgram_socket.hpp:183
typename base_type::ipaddress_type ipaddress_type
Definition: mn_basic_dgram_socket.hpp:127
basic_dgram_ip6_socket()
Definition: mn_basic_dgram_socket.hpp:130
basic_dgram_ip_socket(const protocol_type &protocol)
Definition: mn_basic_dgram_socket.hpp:98
int send_to(char *buffer, int size, endpoint_type &ep, const socket_flags &socketFlags=socket_flags::none)
send a buffer of data to the given enpoint
Definition: mn_basic_dgram_socket.hpp:56
typename base_type::ipaddress_type ipaddress_type
Definition: mn_basic_dgram_socket.hpp:38
typename base_type::handle_type handle_type
Definition: mn_basic_dgram_socket.hpp:39
typename base_type::endpoint_type endpoint_type
Definition: mn_basic_dgram_socket.hpp:37
basic_dgram_ip_socket()
Construt.
Definition: mn_basic_dgram_socket.hpp:44
basic_dgram_ip_socket(handle_type &hndl, endpoint_type *endp=nullptr)
Definition: mn_basic_dgram_socket.hpp:96
int recive_from(char *buffer, int size, endpoint_type *ep, const socket_flags &socketFlags=socket_flags::none)
recive a buffer of data
Definition: mn_basic_dgram_socket.hpp:68
This class represents an internet (IP) version 4 host socket.
Definition: mn_basic_ip4_socket.hpp:31
basic_ip4_socket(handle_type &hndl, endpoint_type *endp=nullptr) noexcept
Construct the wrapper class from a given lwip socket handle and the endpoint.
Definition: mn_basic_ip4_socket.cpp:27
basic_ip4_endpoint endpoint_type
Definition: mn_basic_ip4_socket.hpp:34
basic_ip4_address ipaddress_type
Definition: mn_basic_ip4_socket.hpp:35
typename basic_ip_socket::handle_type handle_type
Definition: mn_basic_ip4_socket.hpp:33
This class represents an internet (IP) version 6 host socket.
Definition: mn_basic_ip6_socket.hpp:33
basic_ip6_socket(handle_type &hndl, basic_ip6_endpoint *endp=nullptr) noexcept
Construct the wrapper class from a given lwip socket handle and the endpoint.
Definition: mn_basic_ip6_socket.cpp:29
basic_ip6_address ipaddress_type
Definition: mn_basic_ip6_socket.hpp:37
basic_ip6_endpoint endpoint_type
Definition: mn_basic_ip6_socket.hpp:36
typename basic_ip_socket::handle_type handle_type
Definition: mn_basic_ip6_socket.hpp:35
protocol_type
Defines socket protoco types for creating.
Definition: mn_net_types.hpp:60
@ unspec
socket_type
Defines socket socket types for creating.
Definition: mn_net_types.hpp:99
socket_flags
Specifies socket send and receive behaviors.
Definition: mn_net_types.hpp:118
Definition: mn_allocator_typetraits.hpp:25