static void Init(Connection conn, IOFunc dispatchHandler) { IOChannel channel = new IOChannel((int)conn.Transport.SocketHandle); IO.AddWatch(channel, IOCondition.In | IOCondition.Hup, dispatchHandler); }