Example #1
0
        static void n_StartResponder_Ljavax_jmdns_impl_DNSIncoming_I(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1)
        {
            IDNSTaskStarter __this = Java.Lang.Object.GetObject <IDNSTaskStarter> (native__this, JniHandleOwnership.DoNotTransfer);

            global::Javax.Jmdns.Impl.DNSIncoming p0 = Java.Lang.Object.GetObject <global::Javax.Jmdns.Impl.DNSIncoming> (native_p0, JniHandleOwnership.DoNotTransfer);
            __this.StartResponder(p0, p1);
        }
 public void AddAnswer(global::Javax.Jmdns.Impl.DNSIncoming p0, global::Javax.Jmdns.Impl.DNSRecord p1)
 {
     if (id_addAnswer_Ljavax_jmdns_impl_DNSIncoming_Ljavax_jmdns_impl_DNSRecord_ == IntPtr.Zero)
     {
         id_addAnswer_Ljavax_jmdns_impl_DNSIncoming_Ljavax_jmdns_impl_DNSRecord_ = JNIEnv.GetMethodID(class_ref, "addAnswer", "(Ljavax/jmdns/impl/DNSIncoming;Ljavax/jmdns/impl/DNSRecord;)V");
     }
     JNIEnv.CallVoidMethod(Handle, id_addAnswer_Ljavax_jmdns_impl_DNSIncoming_Ljavax_jmdns_impl_DNSRecord_, new JValue(p0), new JValue(p1));
 }
Example #3
0
 public void StartResponder(global::Javax.Jmdns.Impl.DNSIncoming p0, int p1)
 {
     if (id_startResponder_Ljavax_jmdns_impl_DNSIncoming_I == IntPtr.Zero)
     {
         id_startResponder_Ljavax_jmdns_impl_DNSIncoming_I = JNIEnv.GetMethodID(class_ref, "startResponder", "(Ljavax/jmdns/impl/DNSIncoming;I)V");
     }
     JNIEnv.CallVoidMethod(Handle, id_startResponder_Ljavax_jmdns_impl_DNSIncoming_I, new JValue(p0), new JValue(p1));
 }
Example #4
0
        static IntPtr n_AddAnswer_Ljavax_jmdns_impl_DNSOutgoing_Ljavax_jmdns_impl_DNSIncoming_Ljavax_jmdns_impl_DNSRecord_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2)
        {
            DNSTask __this = Java.Lang.Object.GetObject <DNSTask> (native__this, JniHandleOwnership.DoNotTransfer);

            global::Javax.Jmdns.Impl.DNSOutgoing p0 = Java.Lang.Object.GetObject <global::Javax.Jmdns.Impl.DNSOutgoing> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::Javax.Jmdns.Impl.DNSIncoming p1 = Java.Lang.Object.GetObject <global::Javax.Jmdns.Impl.DNSIncoming> (native_p1, JniHandleOwnership.DoNotTransfer);
            global::Javax.Jmdns.Impl.DNSRecord   p2 = Java.Lang.Object.GetObject <global::Javax.Jmdns.Impl.DNSRecord> (native_p2, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.AddAnswer(p0, p1, p2));

            return(__ret);
        }
		public Responder (global::Javax.Jmdns.Impl.JmDNSImpl p0, global::Javax.Jmdns.Impl.DNSIncoming p1, int p2) : base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
		{
			if (Handle != IntPtr.Zero)
				return;

			if (GetType () != typeof (Responder)) {
				SetHandle (global::Android.Runtime.JNIEnv.CreateInstance (GetType (), "(Ljavax/jmdns/impl/JmDNSImpl;Ljavax/jmdns/impl/DNSIncoming;I)V", new JValue (p0), new JValue (p1), new JValue (p2)), JniHandleOwnership.TransferLocalRef);
				return;
			}

			if (id_ctor_Ljavax_jmdns_impl_JmDNSImpl_Ljavax_jmdns_impl_DNSIncoming_I == IntPtr.Zero)
				id_ctor_Ljavax_jmdns_impl_JmDNSImpl_Ljavax_jmdns_impl_DNSIncoming_I = JNIEnv.GetMethodID (class_ref, "<init>", "(Ljavax/jmdns/impl/JmDNSImpl;Ljavax/jmdns/impl/DNSIncoming;I)V");
			SetHandle (JNIEnv.NewObject (class_ref, id_ctor_Ljavax_jmdns_impl_JmDNSImpl_Ljavax_jmdns_impl_DNSIncoming_I, new JValue (p0), new JValue (p1), new JValue (p2)), JniHandleOwnership.TransferLocalRef);
		}
Example #6
0
        public virtual global::Javax.Jmdns.Impl.DNSOutgoing AddAnswer(global::Javax.Jmdns.Impl.DNSOutgoing p0, global::Javax.Jmdns.Impl.DNSIncoming p1, global::Javax.Jmdns.Impl.DNSRecord p2)
        {
            if (id_addAnswer_Ljavax_jmdns_impl_DNSOutgoing_Ljavax_jmdns_impl_DNSIncoming_Ljavax_jmdns_impl_DNSRecord_ == IntPtr.Zero)
            {
                id_addAnswer_Ljavax_jmdns_impl_DNSOutgoing_Ljavax_jmdns_impl_DNSIncoming_Ljavax_jmdns_impl_DNSRecord_ = JNIEnv.GetMethodID(class_ref, "addAnswer", "(Ljavax/jmdns/impl/DNSOutgoing;Ljavax/jmdns/impl/DNSIncoming;Ljavax/jmdns/impl/DNSRecord;)Ljavax/jmdns/impl/DNSOutgoing;");
            }

            global::Javax.Jmdns.Impl.DNSOutgoing __ret;
            if (GetType() == ThresholdType)
            {
                __ret = Java.Lang.Object.GetObject <global::Javax.Jmdns.Impl.DNSOutgoing> (JNIEnv.CallObjectMethod(Handle, id_addAnswer_Ljavax_jmdns_impl_DNSOutgoing_Ljavax_jmdns_impl_DNSIncoming_Ljavax_jmdns_impl_DNSRecord_, new JValue(p0), new JValue(p1), new JValue(p2)), JniHandleOwnership.TransferLocalRef);
            }
            else
            {
                __ret = Java.Lang.Object.GetObject <global::Javax.Jmdns.Impl.DNSOutgoing> (JNIEnv.CallNonvirtualObjectMethod(Handle, ThresholdClass, id_addAnswer_Ljavax_jmdns_impl_DNSOutgoing_Ljavax_jmdns_impl_DNSIncoming_Ljavax_jmdns_impl_DNSRecord_, new JValue(p0), new JValue(p1), new JValue(p2)), JniHandleOwnership.TransferLocalRef);
            }
            return(__ret);
        }