public static extern IOCondition g_io_channel_get_buffer_condition(IOChannel channel);
 public static extern uint g_io_channel_get_buffer_size(IOChannel channel);
 public static extern void g_io_channel_set_buffer_size(IOChannel channel, uint size);
 protected static extern uint g_io_add_watch_full(IOChannel channel, int priority, IOCondition condition, IOFunc func, IntPtr user_data, DestroyNotify notify);
 //static extern int g_io_channel_unix_get_fd (IntPtr channel);
 static extern int g_io_channel_unix_get_fd(IOChannel channel);
        public static uint AddWatch(IOChannel channel, IOCondition condition, IOFunc func)
        {
            objs.Add (func);

            return g_io_add_watch (channel.Handle, condition, func, IntPtr.Zero);
        }
			protected static extern uint g_io_add_watch_full (IOChannel channel, int priority, IOCondition condition, IOFunc func, IntPtr user_data, DestroyNotify notify);
			static extern short g_io_channel_set_flags (IOChannel channel, IOFlags flags, IntPtr error);
Example #9
0
		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 extern IOCondition g_io_channel_get_buffer_condition (IOChannel channel);
			public static extern IOFlags g_io_channel_get_flags (IOChannel channel);
			public static extern void g_io_channel_set_buffer_size (IOChannel channel, uint size);
			public static extern uint g_io_channel_get_buffer_size (IOChannel channel);
			//static extern int g_io_channel_unix_get_fd (IntPtr channel);
			static extern int g_io_channel_unix_get_fd (IOChannel channel);
 public static extern IOFlags g_io_channel_get_flags(IOChannel channel);
 protected static extern uint g_io_add_watch(IOChannel channel, IOCondition condition, IOFunc func, IntPtr user_data);
 static extern short g_io_channel_set_flags(IOChannel channel, IOFlags flags, IntPtr error);
        public static uint AddWatch(IOChannel channel, IOCondition condition, IOFunc func)
        {
            objs.Add(func);

            return(g_io_add_watch(channel, 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);
        }
			protected static extern uint g_io_add_watch (IOChannel channel, IOCondition condition, IOFunc func, IntPtr user_data);