EchoConnection to handle new connectionslibevent :: MyFactory :: defaultinit
libevent $ MyFactory :: spawn_connection
Create a newConnection object for buffer_event
			libevent :: ConnectionFactory :: accept_connection
Accept a connection onlistener
			libevent :: ConnectionFactory :: bind_tcp
Listen on the TCP socket ataddress:port for new connections
			libevent :: ConnectionFactory :: bind_unix
Listen on a UNIX domain socket for new connectionscore :: Object :: class_factory
Implementation used byget_class to create the specific class.
			libevent :: MyFactory :: defaultinit
core :: Object :: defaultinit
libevent :: ConnectionFactory :: event_base
TheNativeEventBase for the dispatch loop of this factory
			libevent :: ConnectionFactory :: event_base=
TheNativeEventBase for the dispatch loop of this factory
			core :: Object :: is_same_instance
Return true ifself and other are the same instance (i.e. same identity).
			core :: Object :: is_same_serialized
Isself the same as other in a serialization context?
			core :: Object :: is_same_type
Return true ifself and other have the same dynamic type.
			core :: Object :: output_class_name
Display class name on stdout (debug only).libevent :: ConnectionFactory :: spawn_connection
Create a newConnection object for buffer_event
			
# Factory creating instances of `EchoConnection` to handle new connections
class MyFactory
	super ConnectionFactory
	redef fun spawn_connection(buf, address)
	do
		return new EchoConnection(buf)
	end
end
					lib/libevent/libevent_example.nit:20,1--28,3