reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
reTurn Namespace Reference

Classes

class  AsyncSocketBase
 
class  AsyncSocketBaseHandler
 
class  AsyncTcpSocketBase
 
class  AsyncTlsSocketBase
 
class  AsyncUdpSocketBase
 
class  ChannelManager
 
class  ConnectionManager
 Manages open connections so that they may be cleanly stopped when the server needs to shut down, and counts them per client IP address (with turnManager, which counts all the servers' connections, for MaxTcpConnectionsPerIp). More...
 
class  DataBuffer
 
class  RemotePeer
 
class  RequestHandler
 The common handler for all incoming requests. More...
 
class  ReTurnConfig
 
class  ReTurnServerProcess
 
class  ReTurnUserFileScanner
 
class  StunAuth
 
class  StunMessage
 
class  StunTuple
 
class  TcpConnection
 Represents a single connection from a client. More...
 
class  TcpServer
 
class  TlsConnection
 Represents a single connection from a client. More...
 
class  TlsServer
 
class  TurnAllocation
 
class  TurnAllocationKey
 
class  TurnAllocationManager
 
class  TurnAsyncSocket
 
class  TurnAsyncSocketHandler
 
class  TurnAsyncTcpSocket
 
class  TurnAsyncTlsSocket
 
class  TurnAsyncUdpSocket
 
class  TurnManager
 
class  TurnPermission
 
class  TurnSocket
 
class  TurnTcpSocket
 
class  TurnTlsSocket
 
class  TurnUdpSocket
 
class  UdpEchoServer
 
class  UdpRelayServer
 
class  UdpServer
 
struct  UInt128
 
struct  UInt96
 
class  UserAuthData
 

Typedefs

typedef std::shared_ptr< AsyncSocketBase > ConnectionPtr
 
typedef int ErrorType
 
typedef std::map< resip::Data, reTurn::UserAuthData > RealmUsers
 
typedef std::pair< resip::Data, resip::Data > RealmUserPair
 
typedef asio::ssl::stream< asio::ip::tcp::socket > ssl_socket
 
typedef std::shared_ptr< UdpRelayServer > UdpRelayServerPtr
 

Functions

static asio::ssl::context makeClientContext (const std::string &rootCertificatesFile)
 
void ArrayDeallocator (char *data)
 
bool operator< (const UInt128 &lhs, const UInt128 &rhs)
 
bool operator== (const UInt128 &lhs, const UInt128 &rhs)
 
EncodeStream & operator<< (EncodeStream &strm, const UInt128 &r)
 
EncodeStream & operator<< (EncodeStream &strm, const StunMessage::StunAtrAddress &addr)
 
EncodeStream & operator<< (EncodeStream &os, const StunMessage::StunMsgHdr &h)
 
EncodeStream & operator<< (EncodeStream &strm, const StunTuple &tuple)
 

Variables

static const ErrorType Success = 0
 
static const ErrorType GeneralError = -1
 
static const ErrorType ErrorBase = 8000
 
static const ErrorType MissingAuthenticationAttributes = ErrorBase + 1
 
static const ErrorType BufferTooSmall = ErrorBase + 2
 
static const ErrorType BadMessageIntegrity = ErrorBase + 3
 
static const ErrorType ErrorParsingMessage = ErrorBase + 4
 
static const ErrorType NoAllocation = ErrorBase + 5
 
static const ErrorType NoActiveDestination = ErrorBase + 6
 
static const ErrorType ReadError = ErrorBase + 7
 
static const ErrorType ResponseTimeout = ErrorBase + 8
 
static const ErrorType FrameError = ErrorBase + 9
 
static const ErrorType InvalidChannelNumberReceived = ErrorBase + 10
 
static const ErrorType MissingAttributes = ErrorBase + 11
 
static const ErrorType UnknownRemoteAddress = ErrorBase + 12
 
static const ErrorType InvalidRequestedTransport = ErrorBase + 13
 
static const ErrorType NotConnected = ErrorBase + 14
 
static const ErrorType AlreadyAllocated = ErrorBase + 15
 
static const ErrorType StrayResponse = ErrorBase + 16
 
static const ErrorType UnknownRequiredAttributes = ErrorBase + 17
 

Typedef Documentation

◆ ConnectionPtr

Definition at line 171 of file AsyncSocketBase.hxx.

◆ ErrorType

Definition at line 8 of file ErrorCode.hxx.

◆ RealmUserPair

Definition at line 21 of file ReTurnConfig.hxx.

◆ RealmUsers

◆ ssl_socket

typedef asio::ssl::stream<asio::ip::tcp::socket> reTurn::ssl_socket

Definition at line 19 of file TlsConnection.hxx.

◆ UdpRelayServerPtr

Definition at line 50 of file UdpRelayServer.hxx.

Function Documentation

◆ ArrayDeallocator()

void reTurn::ArrayDeallocator ( char *  data)

Definition at line 8 of file DataBuffer.cxx.

◆ makeClientContext()

static asio::ssl::context reTurn::makeClientContext ( const std::string &  rootCertificatesFile)
static

Definition at line 24 of file TurnTlsSocket.cxx.

◆ operator<()

bool reTurn::operator< ( const UInt128 &  lhs,
const UInt128 &  rhs 
)

Definition at line 44 of file StunMessage.cxx.

◆ operator<<() [1/4]

EncodeStream & reTurn::operator<< ( EncodeStream &  os,
const StunMessage::StunMsgHdr &  h 
)

Definition at line 1255 of file StunMessage.cxx.

◆ operator<<() [2/4]

EncodeStream & reTurn::operator<< ( EncodeStream &  strm,
const StunMessage::StunAtrAddress &  addr 
)

Definition at line 1230 of file StunMessage.cxx.

◆ operator<<() [3/4]

EncodeStream & reTurn::operator<< ( EncodeStream &  strm,
const StunTuple &  tuple 
)

Definition at line 94 of file StunTuple.cxx.

◆ operator<<() [4/4]

EncodeStream & reTurn::operator<< ( EncodeStream &  strm,
const UInt128 &  r 
)

Definition at line 1218 of file StunMessage.cxx.

◆ operator==()

bool reTurn::operator== ( const UInt128 &  lhs,
const UInt128 &  rhs 
)

Definition at line 62 of file StunMessage.cxx.

Variable Documentation

◆ AlreadyAllocated

const ErrorType reTurn::AlreadyAllocated = ErrorBase + 15
static

Definition at line 29 of file ErrorCode.hxx.

◆ BadMessageIntegrity

const ErrorType reTurn::BadMessageIntegrity = ErrorBase + 3
static

Definition at line 17 of file ErrorCode.hxx.

◆ BufferTooSmall

const ErrorType reTurn::BufferTooSmall = ErrorBase + 2
static

Definition at line 16 of file ErrorCode.hxx.

◆ ErrorBase

const ErrorType reTurn::ErrorBase = 8000
static

Definition at line 13 of file ErrorCode.hxx.

◆ ErrorParsingMessage

const ErrorType reTurn::ErrorParsingMessage = ErrorBase + 4
static

Definition at line 18 of file ErrorCode.hxx.

◆ FrameError

const ErrorType reTurn::FrameError = ErrorBase + 9
static

Definition at line 23 of file ErrorCode.hxx.

◆ GeneralError

const ErrorType reTurn::GeneralError = -1
static

Definition at line 11 of file ErrorCode.hxx.

◆ InvalidChannelNumberReceived

const ErrorType reTurn::InvalidChannelNumberReceived = ErrorBase + 10
static

Definition at line 24 of file ErrorCode.hxx.

◆ InvalidRequestedTransport

const ErrorType reTurn::InvalidRequestedTransport = ErrorBase + 13
static

Definition at line 27 of file ErrorCode.hxx.

◆ MissingAttributes

const ErrorType reTurn::MissingAttributes = ErrorBase + 11
static

Definition at line 25 of file ErrorCode.hxx.

◆ MissingAuthenticationAttributes

const ErrorType reTurn::MissingAuthenticationAttributes = ErrorBase + 1
static

Definition at line 15 of file ErrorCode.hxx.

◆ NoActiveDestination

const ErrorType reTurn::NoActiveDestination = ErrorBase + 6
static

Definition at line 20 of file ErrorCode.hxx.

◆ NoAllocation

const ErrorType reTurn::NoAllocation = ErrorBase + 5
static

Definition at line 19 of file ErrorCode.hxx.

◆ NotConnected

const ErrorType reTurn::NotConnected = ErrorBase + 14
static

Definition at line 28 of file ErrorCode.hxx.

◆ ReadError

const ErrorType reTurn::ReadError = ErrorBase + 7
static

Definition at line 21 of file ErrorCode.hxx.

◆ ResponseTimeout

const ErrorType reTurn::ResponseTimeout = ErrorBase + 8
static

Definition at line 22 of file ErrorCode.hxx.

◆ StrayResponse

const ErrorType reTurn::StrayResponse = ErrorBase + 16
static

Definition at line 30 of file ErrorCode.hxx.

◆ Success

const ErrorType reTurn::Success = 0
static

Definition at line 10 of file ErrorCode.hxx.

◆ UnknownRemoteAddress

const ErrorType reTurn::UnknownRemoteAddress = ErrorBase + 12
static

Definition at line 26 of file ErrorCode.hxx.

◆ UnknownRequiredAttributes

const ErrorType reTurn::UnknownRequiredAttributes = ErrorBase + 17
static

Definition at line 31 of file ErrorCode.hxx.