libevent :: ServerThread :: defaultinit
libevent $ ServerThread :: SELF
Type of this instance, automatically specialized in every classcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
pthreads :: Thread :: defaultinit
libevent :: ServerThread :: defaultinit
core :: Object :: defaultinit
core :: Finalizable :: defaultinit
core :: Finalizable :: finalize
Liberate any resources held byself
before the memory holding self
is freed
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).
class ServerThread
super Thread
redef fun main
do
var event_base = new NativeEventBase
var factory = new TestConnectionFactory(event_base)
# Bind TCP socket
factory.bind_tcp(tcp_addr, tcp_port)
# Bind UNIX domain socket
factory.bind_unix unix_socket_path
event_base.dispatch
event_base.free
return null
end
end
lib/libevent/libevent_test.nit:57,1--76,3