예제 #1
0
 static void Init(Connection conn, IOFunc dispatchHandler)
 {
     IOChannel channel = new IOChannel ((int)conn.Transport.SocketHandle);
     IO.AddWatch (channel, IOCondition.In | IOCondition.Hup, dispatchHandler);
 }
예제 #2
0
        public static uint AddWatch(IOChannel channel, IOCondition condition, IOFunc func)
        {
            objs.Add (func);

            return g_io_add_watch (channel.Handle, condition, func, IntPtr.Zero);
        }
예제 #3
0
        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);
        }
예제 #4
0
        public static uint AddWatch(IOChannel channel, IOCondition condition, IOFunc func)
        {
            objs.Add(func);

            return(g_io_add_watch(channel.Handle, condition, func, IntPtr.Zero));
        }