< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate-users] Shall I delete the Transport ?


If use this function to create the transport, shall I delete this transport when the application is closed ? Or does the Stack will delete it ?


    Transport* addTransport( TransportType protocol,
                         int port,
                         IpVersion version=V4,
                         StunSetting stun=StunDisabled,
                         const Data& ipInterface = Data::Empty,
                         const Data& sipDomainname = Data::Empty, // only used
                                                                  // for TLS
                                                                  // based stuff
                         const Data& privateKeyPassPhrase = Data::Empty,
                         SecurityTypes::SSLType sslType = SecurityTypes::TLSv1,
                         unsigned transportFlags = 0,
                         SecurityTypes::TlsClientVerificationMode cvm = SecurityTypes::None,
                         bool useEmailAsSIP = false);