public static GLib.GType FactoryLookupType(GLib.SocketFamily family, GLib.SocketType type, int protocol_id)
        {
            IntPtr raw_ret = g_socket_connection_factory_lookup_type((int)family, (int)type, protocol_id);

            GLib.GType ret = new GLib.GType(raw_ret);
            return(ret);
        }
Exemplo n.º 2
0
        public unsafe bool AddAddress(GLib.SocketAddress address, GLib.SocketType type, GLib.SocketProtocol protocol, GLib.Object source_object, GLib.SocketAddress effective_address)
        {
            IntPtr error   = IntPtr.Zero;
            bool   raw_ret = g_socket_listener_add_address(Handle, address == null ? IntPtr.Zero : address.Handle, (int)type, (int)protocol, source_object == null ? IntPtr.Zero : source_object.Handle, effective_address == null ? IntPtr.Zero : effective_address.Handle, out error);
            bool   ret     = raw_ret;

            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }
 public static void FactoryRegisterType(GLib.GType g_type, GLib.SocketFamily family, GLib.SocketType type, int protocol)
 {
     g_socket_connection_factory_register_type(g_type.Val, (int)family, (int)type, protocol);
 }