28 #ifndef AsyncComm_IOHandlerAccept_h
29 #define AsyncComm_IOHandlerAccept_h
75 #if defined(__APPLE__) || defined(__FreeBSD__)
87 #elif defined(__linux__)
98 #elif defined(__sun__)
149 #endif // AsyncComm_IOHandlerAccept_h
Declarations for ConnectionHandlerFactory.
virtual ~IOHandlerAccept()
Destructor.
chrono::time_point< fast_clock > time_point
HandlerMapPtr m_handler_map
Handler map.
ConnectionHandlerFactoryPtr m_handler_factory
Connection handler factory for creating default dispatch handlers for incoming connections.
std::shared_ptr< HandlerMap > HandlerMapPtr
Smart pointer to HandlerMap.
std::shared_ptr< ConnectionHandlerFactory > ConnectionHandlerFactoryPtr
Smart pointer to ConnectionHandlerFactory.
Encapsulate an internet address.
Base class for socket descriptor I/O handlers.
bool handle_incoming_connection()
Handles incoming connection requests.
Declarations for HandlerMap.
std::shared_ptr< DispatchHandler > DispatchHandlerPtr
Smart pointer to DispatchHandler.
IOHandlerAccept(int sd, const DispatchHandlerPtr &dhp, HandlerMapPtr &hmap, ConnectionHandlerFactoryPtr &chfp)
Constructor.
I/O handler for accept (listen) sockets.
InetAddr m_addr
Handler socket address.
bool handle_event(struct pollfd *event, ClockT::time_point arrival_time) override
Handle poll() interface events.
Declarations for IOHandler.
InetAddr m_local_addr
Local address of connection.