OPAL
Version 3.10.10
|
#include <remote.h>
Public Types | |
enum | { callNumberUndefined = 0xffff } |
Public Member Functions | |
IAX2Remote () | |
virtual | ~IAX2Remote () |
PINDEX | DestCallNumber () |
PINDEX | SourceCallNumber () |
virtual void | PrintOn (ostream &strm) const |
PIPSocket::Address | RemoteAddress () |
PString | BuildConnectionToken () |
PString | BuildOurConnectionToken () |
PINDEX | RemotePort () |
void | Assign (IAX2Remote &) |
void | SetRemoteAddress (PIPSocket::Address &newVal) |
void | SetRemoteAddress (int newVal) |
void | SetRemotePort (PINDEX newVal) |
void | SetSourceCallNumber (PINDEX newVal) |
void | SetDestCallNumber (PINDEX newVal) |
PBoolean | operator== (IAX2Remote &other) |
PBoolean | operator*= (IAX2Remote &other) |
PBoolean | operator!= (IAX2Remote &other) |
Protected Attributes | |
PINDEX | sourceCallNumber |
PINDEX | destCallNumber |
PIPSocket::Address | remoteAddress |
PINDEX | remotePort |
A simple class which contains the different source and dest call numbers, and the remote address + remote port
anonymous enum |
IAX2Remote::IAX2Remote | ( | ) |
Constructor
|
inlinevirtual |
void IAX2Remote::Assign | ( | IAX2Remote & | ) |
Copy data from supplied Remote structure to this class
Referenced by RemotePort().
PString IAX2Remote::BuildConnectionToken | ( | ) |
the connection token can be derived from the information in this class. Consequently, get this class to create the connection token
Referenced by RemoteAddress().
PString IAX2Remote::BuildOurConnectionToken | ( | ) |
Similar to BuildConnectionTokenId, but build it with our source call number, not remote call number
Referenced by RemoteAddress().
|
inline |
Call number as used at the destination of this data frame. If we are receiving this packet, it refers to our call number.
References destCallNumber.
PBoolean IAX2Remote::operator!= | ( | IAX2Remote & | other | ) |
Returns true if these are are different
Referenced by SetSourceCallNumber(), and IAX2SequenceNumbers::~IAX2SequenceNumbers().
PBoolean IAX2Remote::operator*= | ( | IAX2Remote & | other | ) |
Return true if remote port & address & destCallNumber==sourceCallNumber match up. This is used when finding a Connection to process an incoming ethernet frame
Referenced by SetSourceCallNumber().
PBoolean IAX2Remote::operator== | ( | IAX2Remote & | other | ) |
Return true if remote port & address & destCallNumber & source call number match up. This is used when finding a Connection that generated an ethernet frame which is to be transmitted
Referenced by SetSourceCallNumber(), and IAX2SequenceNumbers::~IAX2SequenceNumbers().
|
virtual |
Pretty print this remote structure (address & port) to the designated stream
Referenced by SourceCallNumber(), and IAX2SequenceNumbers::~IAX2SequenceNumbers().
|
inline |
Return the current value of the ip address used by the other end of this call
References BuildConnectionToken(), BuildOurConnectionToken(), and remoteAddress.
|
inline |
return the current value of the port at the other end of this call
References Assign(), and remotePort.
void IAX2Remote::SetDestCallNumber | ( | PINDEX | newVal | ) |
Set the Dest Call Number, as used by this class
Referenced by SetSourceCallNumber().
|
inline |
Set the remote address as used by this class
References remoteAddress.
|
inline |
Set the remote address as used by this class
References remoteAddress.
|
inline |
Set the remote port, as used by this class
References remotePort.
|
inline |
Set the Source Call Number, as used by this class
References operator!=(), operator*=(), operator==(), SetDestCallNumber(), and sourceCallNumber.
|
inline |
Call number as used at the source of this data frame. If we are receiving this packet, it refers to the call number at the remote host.
References PrintOn(), and sourceCallNumber.
Referenced by IAX2CallProcessor::MatchingLocalCallNumber().
|
protected |
Call number at the remote computer.
Referenced by DestCallNumber().
|
protected |
Ip address used by the remote endpoint
Referenced by RemoteAddress(), and SetRemoteAddress().
|
protected |
Port number used by the remote endpoint.
Referenced by RemotePort(), and SetRemotePort().
|
protected |
Call number at the local computer.
Referenced by SetSourceCallNumber(), and SourceCallNumber().