libevent :: NativeBufferEvent :: setcb
read_callback_native
, write_callback
and event_callback
of conn
# Set callbacks to `read_callback_native`, `write_callback` and `event_callback` of `conn`
fun setcb(conn: Connection) import Connection.read_callback_native,
Connection.write_callback, Connection.event_callback, CString `{
Connection_incr_ref(conn);
bufferevent_setcb(self,
(bufferevent_data_cb)c_read_cb,
(bufferevent_data_cb)c_write_cb,
(bufferevent_event_cb)c_event_cb, conn);
`}
lib/libevent/libevent.nit:354,2--362,3