コード例 #1
0
 static byte ToBytes_cb(IntPtr inst)
 {
     try {
         InetAddress __obj = GLib.Object.GetObject(inst, false) as InetAddress;
         byte        __result;
         __result = __obj.OnToBytes();
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
コード例 #2
0
 static IntPtr ToString_cb(IntPtr inst)
 {
     try {
         InetAddress __obj = GLib.Object.GetObject(inst, false) as InetAddress;
         string      __result;
         __result = __obj.OnToString();
         return(GLib.Marshaller.StringToPtrGStrdup(__result));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
コード例 #3
0
ファイル: InetAddress.cs プロジェクト: akrisiun/gtk-sharp
		public static InetAddress NewLoopback(GLib.SocketFamily family)
		{
			InetAddress result = new InetAddress (g_inet_address_new_loopback((int) family));
			return result;
		}
コード例 #4
0
        public static InetAddress NewLoopback(GLib.SocketFamily family)
        {
            InetAddress result = new InetAddress(g_inet_address_new_loopback((int)family));

            return(result);
        }