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);
        }
Exemple #2
0
 public InetAddress(GLib.SocketFamily family) : base(IntPtr.Zero)
 {
     if (GetType() != typeof(InetAddress))
     {
         var vals  = new List <GLib.Value> ();
         var names = new List <string> ();
         names.Add("family");
         vals.Add(new GLib.Value(family));
         CreateNativeObject(names.ToArray(), vals.ToArray());
         return;
     }
     Raw = g_inet_address_new_any((int)family);
 }
 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);
 }
Exemple #4
0
        public static InetAddress NewLoopback(GLib.SocketFamily family)
        {
            InetAddress result = new InetAddress(g_inet_address_new_loopback((int)family));

            return(result);
        }