|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
#include <AsyncTcpSocketBase.hxx>
Protected Member Functions | |
| void | handleReadHeader (const asio::error_code &e) override |
| void | handleTcpResolve (const asio::error_code &ec, const asio::ip::tcp::resolver::results_type &endpoints) override |
| void | handleConnect (const asio::error_code &ec, const asio::ip::tcp::endpoint &endpoint) override |
Protected Member Functions inherited from reTurn::AsyncSocketBase | |
| virtual void | handleSend (const asio::error_code &e) |
| Handle completion of a sendData operation. | |
| virtual void | handleReceive (const asio::error_code &e, size_t bytesTransferred) |
| asio::error_code | openAndBind (asio::ip::tcp::socket &socket) |
| For TCP and TLS client sockets. | |
| void | asyncConnect (asio::ip::tcp::socket &socket, const asio::ip::tcp::resolver::results_type &endpoints) |
| void | startIdleTimer (unsigned int timeoutSeconds, std::function< bool()> inUse) |
| For server connections (TcpConnectionIdleTimeout): the connection is closed, with close(), once nothing has been received on it for timeoutSeconds while inUse() is false - eg. | |
| void | noteReceived () |
| void | stopIdleTimer () |
Protected Attributes | |
| asio::ip::tcp::socket | mSocket |
| asio::ip::tcp::resolver | mResolver |
Protected Attributes inherited from reTurn::AsyncSocketBase | |
| asio::ip::tcp::endpoint | mLocalTcpEndpoint |
| asio::io_context & | mIOService |
| The io_context used to perform asynchronous operations. | |
| std::shared_ptr< DataBuffer > | mReceiveBuffer |
| Receive Buffer and state. | |
| bool | mReceiving |
| asio::ip::address | mConnectedAddress |
| Connected Info and State. | |
| unsigned short | mConnectedPort |
| bool | mConnected |
| AsyncSocketBaseHandler * | mAsyncSocketBaseHandler |
| Handlers. | |
| BeforeClosedHandler | mOnBeforeSocketCloseFp |
| Provides an opportunity for the app to clean up, e.g., QoS-related data or resources just before the socket is closed. | |
Additional Inherited Members | |
Public Types inherited from reTurn::AsyncSocketBase | |
| using | BeforeClosedHandler = std::function< void(unsigned int)> |
Static Public Member Functions inherited from reTurn::AsyncSocketBase | |
| static std::shared_ptr< DataBuffer > | allocateBuffer (size_t size) |
| Utility API. | |
| static size_t | channelDataPadding (size_t length) |
| Over TCP and TLS, a TURN ChannelData message is padded to a multiple of 4 bytes, the padding not counted in its length (RFC 5766 11.5, RFC 8656 12.5): the padding after one of length bytes. | |
| static void | setExclusiveAddressUse (asio::ip::udp::socket &socket) |
| For a UDP socket, between open() and bind(). | |
Definition at line 13 of file AsyncTcpSocketBase.hxx.
|
explicit |
Definition at line 18 of file AsyncTcpSocketBase.cxx.
|
overridevirtual |
Note: The following API's are thread safe and queue the request to be handled by the ioService thread.
Implements reTurn::AsyncSocketBase.
Definition at line 32 of file AsyncTcpSocketBase.cxx.
|
overridevirtual |
Implements reTurn::AsyncSocketBase.
Definition at line 40 of file AsyncTcpSocketBase.cxx.
|
overridevirtual |
Implements reTurn::AsyncSocketBase.
Definition at line 95 of file AsyncTcpSocketBase.cxx.
Implements reTurn::AsyncSocketBase.
Definition at line 101 of file AsyncTcpSocketBase.cxx.
Implements reTurn::AsyncSocketBase.
Reimplemented in reTurn::TurnAsyncTcpSocket.
Definition at line 26 of file AsyncTcpSocketBase.cxx.
|
overrideprotectedvirtual |
Reimplemented from reTurn::AsyncSocketBase.
Definition at line 68 of file AsyncTcpSocketBase.cxx.
|
overrideprotectedvirtual |
Reimplemented from reTurn::AsyncSocketBase.
Definition at line 129 of file AsyncTcpSocketBase.cxx.
|
overrideprotectedvirtual |
Reimplemented from reTurn::AsyncSocketBase.
Definition at line 52 of file AsyncTcpSocketBase.cxx.
|
virtual |
Definition at line 87 of file AsyncTcpSocketBase.cxx.
|
overridevirtual |
Implements reTurn::AsyncSocketBase.
Definition at line 183 of file AsyncTcpSocketBase.cxx.
|
overridevirtual |
Implements reTurn::AsyncSocketBase.
Definition at line 122 of file AsyncTcpSocketBase.cxx.
|
overridevirtual |
Implements reTurn::AsyncSocketBase.
Definition at line 115 of file AsyncTcpSocketBase.cxx.
|
overridevirtual |
Implements reTurn::AsyncSocketBase.
Definition at line 107 of file AsyncTcpSocketBase.cxx.
|
protected |
Definition at line 38 of file AsyncTcpSocketBase.hxx.
|
protected |
Definition at line 37 of file AsyncTcpSocketBase.hxx.