Example #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);
 }
Example #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);
        }
Example #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);
        }
Example #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));
        }