Connection
object for buffer_event
# Create a new `Connection` object for `buffer_event`
fun spawn_connection(buffer_event: NativeBufferEvent, address: String): Connection
do
return new Connection(buffer_event)
end
lib/libevent/libevent.nit:508,2--512,4
redef fun spawn_connection(buf, address)
do
return new EchoConnection(buf)
end
lib/libevent/libevent_example.nit:24,2--27,4
redef fun spawn_connection(buf, address)
do
print "[Server] New client: {address}"
var conn = new TestConnection(buf)
print "[Server] Write: Hi"
conn.write "Hi\n"
return conn
end
lib/libevent/libevent_test.nit:36,2--44,4
redef fun spawn_connection(buf_ev, address) do return new HttpServer(buf_ev, self, address)
lib/nitcorn/reactor.nit:137,2--92