mn_basic_ip4_socket.hpp
Go to the documentation of this file.
48 basic_ip4_socket(const socket_type& type, const protocol_type& protocol = protocol_type::unspec) noexcept;
91 bool bind(ipaddress_type ip, const unsigned int& port, bool reuseAddress = false, bool reusePort = false);
This class represents an internet (IP) version 6 host address.
Definition: mn_basic_ip4_address.hpp:38
Definition: mn_basic_ip4_endpoint.hpp:36
This class represents an internet (IP) version 4 host socket.
Definition: mn_basic_ip4_socket.hpp:31
virtual basic_ip_socket * get_copy()
Get a copy of this socket.
Definition: mn_basic_ip4_socket.hpp:131
endpoint_type * get_remote()
Get the remote endpoint.
Definition: mn_basic_ip4_socket.hpp:110
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
bool get_peername(endpoint_type &endpoint)
Get the remote endpoint.
Definition: mn_basic_ip4_socket.cpp:148
endpoint_type * get_local()
Get the local endpoint.
Definition: mn_basic_ip4_socket.hpp:105
virtual void swap(basic_ip4_socket &rhs) noexcept
Definition: mn_basic_ip4_socket.hpp:134
basic_ip4_endpoint endpoint_type
Definition: mn_basic_ip4_socket.hpp:34
basic_ip4_address ipaddress_type
Definition: mn_basic_ip4_socket.hpp:35
endpoint_type * get_endpoint(bool local)
Get the local or remote ip endpoint.
Definition: mn_basic_ip4_socket.cpp:60
endpoint_type * m_pEndPoint
A saved / cached copy of the endpoint on binde the socket.
Definition: mn_basic_ip4_socket.hpp:142
bool bind(endpoint_type local_ep, bool reuseAddress=false, bool reusePort=false)
Bind the socket on the given endpoint (ip and port)
Definition: mn_basic_ip4_socket.cpp:83
typename basic_ip_socket::handle_type handle_type
Definition: mn_basic_ip4_socket.hpp:33
Wrapper class around lwip implementation of a socket.
Definition: mn_basic_socket.hpp:54
virtual void swap(basic_ip_socket &rhs) noexcept
Definition: mn_basic_socket.hpp:136
struct mn::memory::detail::ptr_difference type
protocol_type
Defines socket protoco types for creating.
Definition: mn_net_types.hpp:60
socket_type
Defines socket socket types for creating.
Definition: mn_net_types.hpp:99
Definition: mn_allocator_typetraits.hpp:25