OPAL
Version 3.18.8
|
#include <remote.h>
Inherits PObject.
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
PString IAX2Remote::BuildConnectionToken | ( | ) |
the connection token can be derived from the information in this class. Consequently, get this class to create the connection token
PString IAX2Remote::BuildOurConnectionToken | ( | ) |
Similar to BuildConnectionTokenId, but build it with our source call number, not remote call number
|
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
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
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
|
virtual |
Pretty print this remote structure (address & port) to the designated stream
|
inline |
Return the current value of the ip address used by the other end of this call
References remoteAddress.
|
inline |
return the current value of the port at the other end of this call
References remotePort.
void IAX2Remote::SetDestCallNumber | ( | PINDEX | newVal | ) |
Set the Dest Call Number, as used by this class
|
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 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 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().