static void Init(Connection conn, IOFunc dispatchHandler) { IOChannel channel = new IOChannel ((int)conn.Transport.SocketHandle); IO.AddWatch (channel, IOCondition.In | IOCondition.Hup, dispatchHandler); }
public static uint AddWatch(IOChannel channel, IOCondition condition, IOFunc func) { objs.Add (func); return g_io_add_watch (channel.Handle, condition, func, IntPtr.Zero); }
public static uint AddWatch(IOChannel channel, int priority, IOCondition condition, IOFunc func, DestroyNotify notify) { objs.Add (func); objs.Add (notify); return g_io_add_watch_full (channel.Handle, priority, condition, func, IntPtr.Zero, notify); }
public static uint AddWatch(IOChannel channel, IOCondition condition, IOFunc func) { objs.Add(func); return(g_io_add_watch(channel.Handle, condition, func, IntPtr.Zero)); }