TCPConnectionPair
TCPConnectionPair
#include <icy/turn/server/tcpconnectionpair.h>class TCPConnectionPairDefined in src/turn/include/icy/turn/server/tcpconnectionpair.h:35
Inherits:
RefCounted< TCPConnectionPair >
Paired TCP connections forming a single TURN relay pipe between a client and a peer. Lifetime managed by IntrusivePtr; the owning TCPAllocation holds the Ptr in its pair map.
List of all members
| Name | Kind | Owner |
|---|---|---|
allocation | variable | Declared here |
client | variable | Declared here |
peer | variable | Declared here |
earlyPeerData | variable | Declared here |
connectionID | variable | Declared here |
isDataConnection | variable | Declared here |
pendingDelete | variable | Declared here |
timeout | variable | Declared here |
transactionID | variable | Declared here |
TCPConnectionPair | function | Declared here |
~TCPConnectionPair | function | Declared here |
doPeerConnect | function | Declared here |
makeDataConnection | function | Declared here |
setPeerSocket | function | Declared here |
setClientSocket | function | Declared here |
onPeerConnectSuccess | function | Declared here |
onPeerConnectError | function | Declared here |
onClientDataReceived | function | Declared here |
onPeerDataReceived | function | Declared here |
onConnectionClosed | function | Declared here |
startTimeout | function | Declared here |
requestDeletion | function | Declared here |
expired | function | Declared here |
Ptr | typedef | Declared here |
TCPConnectionPair | function | Declared here |
operator= | function | Declared here |
TCPConnectionPair | function | Declared here |
operator= | function | Declared here |
RefCounted | function | Inherited from RefCounted |
RefCounted | function | Inherited from RefCounted |
operator= | function | Inherited from RefCounted |
addRef | function | Inherited from RefCounted |
releaseRef | function | Inherited from RefCounted |
refCount | function | Inherited from RefCounted |
~RefCounted | function | Inherited from RefCounted |
_refCount | variable | Inherited from RefCounted |
Inherited from RefCounted
| Kind | Name | Description |
|---|---|---|
function | RefCounted | Defaulted constructor. |
function | RefCounted inline noexcept | |
function | operator= inline noexcept | |
function | addRef const inline noexcept | Increments the reference count. Called by IntrusivePtr on acquisition. |
function | releaseRef const inline noexcept | Decrements the reference count. |
function | refCount const inline noexcept | Returns the current reference count. |
function | ~RefCounted | Defaulted destructor. |
variable | _refCount |
Public Attributes
| Return | Name | Description |
|---|---|---|
TCPAllocation & | allocation | |
net::SocketEmitter | client | |
net::SocketEmitter | peer | |
Buffer | earlyPeerData | |
uint32_t | connectionID | |
bool | isDataConnection | |
bool | pendingDelete | |
Timeout | timeout | |
stun::TransactionID | transactionID |
allocation
TCPAllocation & allocationDefined in src/turn/include/icy/turn/server/tcpconnectionpair.h:67
client
net::SocketEmitter clientDefined in src/turn/include/icy/turn/server/tcpconnectionpair.h:69
peer
net::SocketEmitter peerDefined in src/turn/include/icy/turn/server/tcpconnectionpair.h:70
earlyPeerData
Buffer earlyPeerDataDefined in src/turn/include/icy/turn/server/tcpconnectionpair.h:72
connectionID
uint32_t connectionIDDefined in src/turn/include/icy/turn/server/tcpconnectionpair.h:73
isDataConnection
bool isDataConnectionDefined in src/turn/include/icy/turn/server/tcpconnectionpair.h:74
pendingDelete
bool pendingDelete = falseDefined in src/turn/include/icy/turn/server/tcpconnectionpair.h:75
timeout
Timeout timeoutDefined in src/turn/include/icy/turn/server/tcpconnectionpair.h:76
transactionID
stun::TransactionID transactionIDDefined in src/turn/include/icy/turn/server/tcpconnectionpair.h:77
Public Methods
| Return | Name | Description |
|---|---|---|
TCPConnectionPair | Constructs a pair with a randomly assigned connection ID. The caller must add the pair to the allocation's pair map. | |
bool | doPeerConnect | |
bool | makeDataConnection | |
void | setPeerSocket | |
void | setClientSocket | |
bool | onPeerConnectSuccess | |
bool | onPeerConnectError | |
bool | onClientDataReceived | |
bool | onPeerDataReceived | |
bool | onConnectionClosed | |
void | startTimeout | |
void | requestDeletion | |
bool | expired const |
TCPConnectionPair
TCPConnectionPair(TCPAllocation & allocation)Defined in src/turn/include/icy/turn/server/tcpconnectionpair.h:43
Constructs a pair with a randomly assigned connection ID. The caller must add the pair to the allocation's pair map.
Parameters
allocationThe TCPAllocation that owns this pair.
doPeerConnect
bool doPeerConnect(const net::Address & peerAddr)Defined in src/turn/include/icy/turn/server/tcpconnectionpair.h:46
makeDataConnection
bool makeDataConnection()Defined in src/turn/include/icy/turn/server/tcpconnectionpair.h:47
setPeerSocket
void setPeerSocket(const net::TCPSocket::Ptr & socket)Defined in src/turn/include/icy/turn/server/tcpconnectionpair.h:49
setClientSocket
void setClientSocket(const net::TCPSocket::Ptr & socket)Defined in src/turn/include/icy/turn/server/tcpconnectionpair.h:50
onPeerConnectSuccess
bool onPeerConnectSuccess(net::Socket & socket)Defined in src/turn/include/icy/turn/server/tcpconnectionpair.h:52
onPeerConnectError
bool onPeerConnectError(net::Socket & socket, const Error & error)Defined in src/turn/include/icy/turn/server/tcpconnectionpair.h:53
onClientDataReceived
bool onClientDataReceived(net::Socket & socket, const MutableBuffer & buffer, const net::Address & peerAddress)Defined in src/turn/include/icy/turn/server/tcpconnectionpair.h:55
onPeerDataReceived
bool onPeerDataReceived(net::Socket & socket, const MutableBuffer & buffer, const net::Address & peerAddress)Defined in src/turn/include/icy/turn/server/tcpconnectionpair.h:57
onConnectionClosed
bool onConnectionClosed(net::Socket & socket)Defined in src/turn/include/icy/turn/server/tcpconnectionpair.h:60
startTimeout
void startTimeout()Defined in src/turn/include/icy/turn/server/tcpconnectionpair.h:62
requestDeletion
void requestDeletion()Defined in src/turn/include/icy/turn/server/tcpconnectionpair.h:63
expired
const
bool expired() constDefined in src/turn/include/icy/turn/server/tcpconnectionpair.h:65
Public Types
| Name | Description |
|---|---|
Ptr |
Ptr
using Ptr = IntrusivePtr< TCPConnectionPair >Defined in src/turn/include/icy/turn/server/tcpconnectionpair.h:38
Private Methods
| Return | Name | Description |
|---|---|---|
TCPConnectionPair | Deleted constructor. | |
TCPConnectionPair | Deleted constructor. |
TCPConnectionPair
TCPConnectionPair(const TCPConnectionPair &) = deleteDefined in src/turn/include/icy/turn/server/tcpconnectionpair.h:80
Deleted constructor.
TCPConnectionPair
TCPConnectionPair(TCPConnectionPair &&) = deleteDefined in src/turn/include/icy/turn/server/tcpconnectionpair.h:82
Deleted constructor.
