#include <NET_SocketListener.h>
|
template<typename S = SocketT, typename = typename std::enable_if_t<socket_info<S>::uses_port>> |
void | start (int initial_port, int max_port_range=-1, bool use_system_port=false, const ASIO_IPAddress &address=ASIO_IPAddressV4()) |
|
template<typename S = SocketT, typename = typename std::enable_if_t<socket_info<S>::uses_port>> |
void | start () |
|
void | start (const ASIO_TCPEndpoint &ep) |
|
void | close (bool force) override |
|
template<typename S = SocketT, typename = typename std::enable_if_t<socket_info<S>::uses_port>> |
int | port () const |
|
template<typename S = SocketT, typename = typename std::enable_if_t<socket_info<S>::uses_port>> |
void | setPort (int port) |
|
template<typename S = SocketT, typename = typename std::enable_if_t<socket_info<S>::uses_port>> |
void | setMaxPort (int port) |
|
template<typename S = SocketT, typename = typename std::enable_if_t<socket_info<S>::uses_port>> |
void | setUseSystemPort (bool use_sys) |
|
template<typename S = SocketT, typename = typename std::enable_if_t<socket_info<S>::uses_port>> |
void | setUseIPv6 (bool use_v6) |
|
template<typename S = SocketT, typename = typename std::enable_if_t<socket_info<S>::uses_port>> |
bool | useIPv6 () const |
|
template<typename S = SocketT, typename = typename std::enable_if_t<socket_info<S>::uses_port>> |
void | setBindAddress (const ASIO_IPAddress &bind_address) |
|
template<typename S = SocketT, typename = typename std::enable_if_t<socket_info<S>::uses_port>> |
const ASIO_IPAddress & | bindAddress () const |
|
endpoint_type | endpoint () const |
|
bool | isOpen () const override |
|
virtual | ~NET_ISocketListener ()=default |
|
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
class NET_SocketListener< AcceptorT, SocketT >
Definition at line 83 of file NET_SocketListener.h.
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
template<typename S = SocketT, typename = typename std::enable_if_t<socket_info<S>::uses_port>>
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
Do any initialization after the socket listener has been setup but before we actually start accepting requests.
Definition at line 235 of file NET_SocketListener.h.
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
Called each time a new socket is accepted. Make sure to add the connection handler to the connection manager so that we can easily stop all requests that came from this listening socket when shutting down.
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
template<typename S = SocketT, typename = typename std::enable_if_t<socket_info<S>::uses_port>>
Returns the port the socket listener is bound to. It does not return the port that was requested to bind to.
Definition at line 165 of file NET_SocketListener.h.
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
template<typename S = SocketT, typename = typename std::enable_if_t<socket_info<S>::uses_port>>
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
template<typename S = SocketT, typename = typename std::enable_if_t<socket_info<S>::uses_port>>
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
template<typename S = SocketT, typename = typename std::enable_if_t<socket_info<S>::uses_port>>
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
template<typename S = SocketT, typename = typename std::enable_if_t<socket_info<S>::uses_port>>
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
template<typename S = SocketT, typename = typename std::enable_if_t<socket_info<S>::uses_port>>
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
template<typename S = SocketT, typename = typename std::enable_if_t<socket_info<S>::uses_port>>
template<typename AcceptorT , typename SocketT >
template<typename S , typename Detected >
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
template<typename AcceptorT , typename SocketT >
Start an async accept. If the accept was a success onAccept_ is called.
Definition at line 302 of file NET_SocketListener.h.
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
template<typename S = SocketT, typename = typename std::enable_if_t<socket_info<S>::uses_port>>
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
template<typename AcceptorT, typename SocketT = hboost::asio::basic_stream_socket<typename AcceptorT::protocol_type>>
The documentation for this class was generated from the following file: