|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
This class represents the Flow Manager. More...
#include <FlowManager.hxx>
Static Public Member Functions | |
| static int | createCert (const resip::Data &pAor, int expireDays, int keyLen, X509 *&outCert, EVP_PKEY *&outKey) |
This class represents the Flow Manager.
It is responsible for sending/receiving media and performing the necessary NAT traversal.
Threading Notes: This class implements a thread to manage the asyncrouns reTurn client library calls. Essentially all asyncrounous operations for all Flows will be called from this one thread.
Author: Scott Godin (sgodin AT SipSpectrum DOT com)
Definition at line 42 of file FlowManager.hxx.
| FlowManager::FlowManager | ( | ) |
Definition at line 63 of file FlowManager.cxx.
|
virtual |
Definition at line 104 of file FlowManager.cxx.
| bool FlowManager::addTlsRootCertificates | ( | const resip::Data & | rootCertificatesFile | ) |
Adds the root (CA) certificates in a PEM file to those TURN servers' TLS certificates are verified with.
"ca.pem" in the working directory is loaded at construction, if it exists. Returns false if the file can't be loaded.
Definition at line 231 of file FlowManager.cxx.
|
static |
Definition at line 244 of file FlowManager.cxx.
| MediaStream * FlowManager::createMediaStream | ( | MediaStreamHandler & | mediaStreamHandler, |
| const StunTuple & | localBinding, | ||
| bool | rtcpEnabled = true, |
||
| MediaStream::NatTraversalMode | natTraversalMode = MediaStream::NoNatTraversal, |
||
| const char * | natTraversalServerHostname = 0, |
||
| unsigned short | natTraversalServerPort = 0, |
||
| const char * | stunUsername = 0, |
||
| const char * | stunPassword = 0, |
||
| bool | forceCOMedia = false, |
||
| std::shared_ptr< FlowContext > | context = nullptr |
||
| ) |
Definition at line 168 of file FlowManager.cxx.
|
inline |
Definition at line 67 of file FlowManager.hxx.
|
inlinenoexcept |
Definition at line 82 of file FlowManager.hxx.
Definition at line 124 of file FlowManager.cxx.
|
inlinenoexcept |
Definition at line 81 of file FlowManager.hxx.
Whether flows using TURN over TLS check that the server's certificate is for the TURN server's host name (or IP address) - default true.
Applies to media streams created after the call.
Definition at line 79 of file FlowManager.hxx.