4 #ifndef _libiqnet_connection_factory_
5 #define _libiqnet_connection_factory_
16 virtual void create_accepted(
const Socket& ) = 0;
21 template <
class Conn_type>
24 void create_accepted(
const Socket& sock )
26 Conn_type* c =
new Conn_type( sock );
31 virtual void post_create( Conn_type* ) {}
Factory class for single threaded connections.
Definition: conn_factory.h:22
Abstract factory for accepted connections.
Definition: conn_factory.h:13
Relatively portable socket class.
Definition: socket.h:13