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);
示例#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);
		}
示例#10
0
			public static extern IOCondition g_io_channel_get_buffer_condition (IOChannel channel);
示例#11
0
			public static extern IOFlags g_io_channel_get_flags (IOChannel channel);
示例#12
0
			public static extern void g_io_channel_set_buffer_size (IOChannel channel, uint size);
示例#13
0
			public static extern uint g_io_channel_get_buffer_size (IOChannel channel);
示例#14
0
			//static extern int g_io_channel_unix_get_fd (IntPtr channel);
			static extern int g_io_channel_unix_get_fd (IOChannel channel);
示例#15
0
 public static extern IOFlags g_io_channel_get_flags(IOChannel channel);
示例#16
0
 protected static extern uint g_io_add_watch(IOChannel channel, IOCondition condition, IOFunc func, IntPtr user_data);
示例#17
0
 static extern short g_io_channel_set_flags(IOChannel channel, IOFlags flags, IntPtr error);
示例#18
0
        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);
        }
示例#20
0
			protected static extern uint g_io_add_watch (IOChannel channel, IOCondition condition, IOFunc func, IntPtr user_data);