Beispiel #1
0
        public SWIGTYPE_p_in_addr inAddr()
        {
            global::System.IntPtr cPtr = AriaCSPINVOKE.ArSocket_inAddr(swigCPtr);
            SWIGTYPE_p_in_addr    ret  = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_in_addr(cPtr, false);

            return(ret);
        }
Beispiel #2
0
        public static bool hostAddr(string host, SWIGTYPE_p_in_addr addr)
        {
            bool ret = AriaCSPINVOKE.ArSocket_hostAddr(host, SWIGTYPE_p_in_addr.getCPtr(addr));

            if (AriaCSPINVOKE.SWIGPendingException.Pending)
            {
                throw AriaCSPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #3
0
        public static bool addrHost(SWIGTYPE_p_in_addr addr, string host)
        {
            bool ret = AriaCSPINVOKE.ArSocket_addrHost(SWIGTYPE_p_in_addr.getCPtr(addr), host);

            if (AriaCSPINVOKE.SWIGPendingException.Pending)
            {
                throw AriaCSPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #4
0
 public static void inToA(SWIGTYPE_p_in_addr addr, string buff)
 {
     AriaCSPINVOKE.ArSocket_inToA(SWIGTYPE_p_in_addr.getCPtr(addr), buff);
 }
 public static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_in_addr obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }