reSIProcate/stack  9694
Public Types | Static Public Member Functions | Private Member Functions | Static Private Attributes
resip::InteropHelper Class Reference

This class is intended to encapsulate what version/s of various drafts are supported by the stack. More...

#include <InteropHelper.hxx>

List of all members.

Public Types

enum  ClientNATDetectionMode { ClientNATDetectionDisabled, ClientNATDetectionEnabled, ClientNATDetectionPrivateToPublicOnly }

Static Public Member Functions

static int getOutboundVersion ()
static void setOutboundVersion (int version)
static bool getOutboundSupported ()
static void setOutboundSupported (bool supported)
static unsigned int getFlowTimerSeconds ()
static void setFlowTimerSeconds (unsigned int seconds)
static unsigned int getFlowTimerGracePeriodSeconds ()
static void setFlowTimerGracePeriodSeconds (unsigned int seconds)
static bool getRRTokenHackEnabled ()
static void setRRTokenHackEnabled (bool enabled)
static
InteropHelper::ClientNATDetectionMode 
getClientNATDetectionMode ()
static void setClientNATDetectionMode (InteropHelper::ClientNATDetectionMode mode)
static bool getAssumeFirstHopSupportsOutboundEnabled ()
static void setAssumeFirstHopSupportsOutboundEnabled (bool enabled)

Private Member Functions

 InteropHelper ()
 ~InteropHelper ()

Static Private Attributes

static int theOutboundVersion = 11
static bool isOutboundSupported = true
static unsigned int flowTimerSeconds = 0
static unsigned int flowTimerGracePeriodSeconds = 30
static bool useRRTokenHack = false
static ClientNATDetectionMode clientNATDetection = InteropHelper::ClientNATDetectionDisabled
static bool assumeFirstHopSupportsOutbound = false

Detailed Description

This class is intended to encapsulate what version/s of various drafts are supported by the stack.

This also allows for configurable version support at runtime.

Definition at line 12 of file InteropHelper.hxx.


Member Enumeration Documentation

Enumerator:
ClientNATDetectionDisabled 
ClientNATDetectionEnabled 
ClientNATDetectionPrivateToPublicOnly 

Definition at line 43 of file InteropHelper.hxx.


Constructor & Destructor Documentation

resip::InteropHelper::InteropHelper ( ) [private]
resip::InteropHelper::~InteropHelper ( ) [private]

Member Function Documentation

static bool resip::InteropHelper::getAssumeFirstHopSupportsOutboundEnabled ( ) [inline, static]

Definition at line 71 of file InteropHelper.hxx.

References assumeFirstHopSupportsOutbound.

static InteropHelper::ClientNATDetectionMode resip::InteropHelper::getClientNATDetectionMode ( ) [inline, static]

Definition at line 57 of file InteropHelper.hxx.

References clientNATDetection.

static unsigned int resip::InteropHelper::getFlowTimerGracePeriodSeconds ( ) [inline, static]

Definition at line 30 of file InteropHelper.hxx.

References flowTimerGracePeriodSeconds.

Referenced by resip::ConnectionManager::gc().

static unsigned int resip::InteropHelper::getFlowTimerSeconds ( ) [inline, static]

Definition at line 22 of file InteropHelper.hxx.

References flowTimerSeconds.

Referenced by resip::ConnectionManager::gc().

{return flowTimerSeconds;}
static bool resip::InteropHelper::getOutboundSupported ( ) [inline, static]

Definition at line 17 of file InteropHelper.hxx.

References isOutboundSupported.

static int resip::InteropHelper::getOutboundVersion ( ) [inline, static]
static bool resip::InteropHelper::getRRTokenHackEnabled ( ) [inline, static]

Definition at line 40 of file InteropHelper.hxx.

References useRRTokenHack.

{return useRRTokenHack;}
static void resip::InteropHelper::setAssumeFirstHopSupportsOutboundEnabled ( bool  enabled) [inline, static]

Definition at line 72 of file InteropHelper.hxx.

References assumeFirstHopSupportsOutbound.

static void resip::InteropHelper::setClientNATDetectionMode ( InteropHelper::ClientNATDetectionMode  mode) [inline, static]

Definition at line 58 of file InteropHelper.hxx.

References clientNATDetection.

static void resip::InteropHelper::setFlowTimerGracePeriodSeconds ( unsigned int  seconds) [inline, static]

Definition at line 31 of file InteropHelper.hxx.

References flowTimerGracePeriodSeconds.

static void resip::InteropHelper::setFlowTimerSeconds ( unsigned int  seconds) [inline, static]

Definition at line 23 of file InteropHelper.hxx.

References flowTimerSeconds.

{flowTimerSeconds=seconds;}
static void resip::InteropHelper::setOutboundSupported ( bool  supported) [inline, static]

Definition at line 18 of file InteropHelper.hxx.

References isOutboundSupported.

{isOutboundSupported=supported;}
static void resip::InteropHelper::setOutboundVersion ( int  version) [inline, static]

Definition at line 16 of file InteropHelper.hxx.

References theOutboundVersion.

{theOutboundVersion=version;}
static void resip::InteropHelper::setRRTokenHackEnabled ( bool  enabled) [inline, static]

Definition at line 41 of file InteropHelper.hxx.

References useRRTokenHack.

{useRRTokenHack=enabled;}

Member Data Documentation

InteropHelper::ClientNATDetectionMode resip::InteropHelper::clientNATDetection = InteropHelper::ClientNATDetectionDisabled [static, private]

Definition at line 83 of file InteropHelper.hxx.

Referenced by getClientNATDetectionMode(), and setClientNATDetectionMode().

unsigned int resip::InteropHelper::flowTimerGracePeriodSeconds = 30 [static, private]
unsigned int resip::InteropHelper::flowTimerSeconds = 0 [static, private]

Definition at line 80 of file InteropHelper.hxx.

Referenced by getFlowTimerSeconds(), and setFlowTimerSeconds().

bool resip::InteropHelper::isOutboundSupported = true [static, private]

Definition at line 79 of file InteropHelper.hxx.

Referenced by getOutboundSupported(), and setOutboundSupported().

int resip::InteropHelper::theOutboundVersion = 11 [static, private]

Definition at line 78 of file InteropHelper.hxx.

Referenced by getOutboundVersion(), and setOutboundVersion().

bool resip::InteropHelper::useRRTokenHack = false [static, private]

Definition at line 82 of file InteropHelper.hxx.

Referenced by getRRTokenHackEnabled(), and setRRTokenHackEnabled().


The documentation for this class was generated from the following files: