Пример #1
0
 public global::Java.Net.ServerSocket CreateServerSocket(int p0, int p1, global::Java.Net.InetAddress p2)
 {
     if (id_createServerSocket_IILjava_net_InetAddress_ == IntPtr.Zero)
     {
         id_createServerSocket_IILjava_net_InetAddress_ = JNIEnv.GetMethodID(class_ref, "createServerSocket", "(IILjava/net/InetAddress;)Ljava/net/ServerSocket;");
     }
     global::Java.Net.ServerSocket __ret = global::Java.Lang.Object.GetObject <global::Java.Net.ServerSocket> (JNIEnv.CallObjectMethod(Handle, id_createServerSocket_IILjava_net_InetAddress_, new JValue(p0), new JValue(p1), new JValue(p2)), JniHandleOwnership.TransferLocalRef);
     return(__ret);
 }
        public static unsafe void CloseQuietly(global::Java.Net.ServerSocket serverSocket)
        {
            const string __id = "closeQuietly.(Ljava/net/ServerSocket;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((serverSocket == null) ? IntPtr.Zero : ((global::Java.Lang.Object)serverSocket).Handle);
                _members.StaticMethods.InvokeVoidMethod(__id, __args);
            } finally {
            }
        }