Exemple #1
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);
    }
Exemple #2
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_pjsip_transport_type_e obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }