Esempio n. 1
0
 public void setTransport(SWIGTYPE_p_TransportId tp_id)
 {
     pjsua2PINVOKE.Account_setTransport(swigCPtr, SWIGTYPE_p_TransportId.getCPtr(tp_id));
     if (pjsua2PINVOKE.SWIGPendingException.Pending)
     {
         throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 2
0
 public void transportClose(SWIGTYPE_p_TransportId id)
 {
     pjsua2PINVOKE.Endpoint_transportClose(swigCPtr, SWIGTYPE_p_TransportId.getCPtr(id));
     if (pjsua2PINVOKE.SWIGPendingException.Pending)
     {
         throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 3
0
    public SWIGTYPE_p_TransportInfo transportGetInfo(SWIGTYPE_p_TransportId id)
    {
        SWIGTYPE_p_TransportInfo ret = new SWIGTYPE_p_TransportInfo(pjsua2PINVOKE.Endpoint_transportGetInfo(swigCPtr, SWIGTYPE_p_TransportId.getCPtr(id)), true);

        if (pjsua2PINVOKE.SWIGPendingException.Pending)
        {
            throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Esempio n. 4
0
    public SWIGTYPE_p_TransportId transportCreate(SWIGTYPE_p_pjsip_transport_type_e type, SWIGTYPE_p_TransportConfig cfg)
    {
        SWIGTYPE_p_TransportId ret = new SWIGTYPE_p_TransportId(pjsua2PINVOKE.Endpoint_transportCreate(swigCPtr, SWIGTYPE_p_pjsip_transport_type_e.getCPtr(type), SWIGTYPE_p_TransportConfig.getCPtr(cfg)), true);

        if (pjsua2PINVOKE.SWIGPendingException.Pending)
        {
            throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Esempio n. 5
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_TransportId obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }