2#if defined(HAVE_CONFIG_H)
13#if defined(WIN32) && !defined(__GNUC__)
14#pragma warning( disable : 4355 )
20 asio::ssl::context& sslContext,
21 bool validateServerCertificateHostname,
23 const asio::ip::address& address,
24 unsigned short port) :
25 TurnAsyncSocket(ioService, *this, turnAsyncSocketHandler, address, port),
34TurnAsyncTlsSocket::onConnectSuccess()
44TurnAsyncTlsSocket::onConnectFailure(
const asio::error_code& e)
51TurnAsyncTlsSocket::onReceiveSuccess(
const asio::ip::address& address,
unsigned short port,
const std::shared_ptr<DataBuffer>& data)
58TurnAsyncTlsSocket::onReceiveFailure(
const asio::error_code& e)
65TurnAsyncTlsSocket::onSendSuccess()
72TurnAsyncTlsSocket::onSendFailure(
const asio::error_code& e)
unsigned short mConnectedPort
asio::ip::address mConnectedAddress
Connected Info and State.
asio::error_code bind(const asio::ip::address &address, unsigned short port) override
Note: The following API's are thread safe and queue the request to be handled by the ioService thread...
void setTransportType(TransportType transport)
virtual void onReceiveFailure(unsigned int socketDesc, const asio::error_code &e)=0
virtual void onSendSuccess(unsigned int socketDesc)=0
virtual void onSendFailure(unsigned int socketDesc, const asio::error_code &e)=0
virtual void onConnectFailure(unsigned int socketDesc, const asio::error_code &e)=0
virtual void onConnectSuccess(unsigned int socketDesc, const asio::ip::address &address, unsigned short port)=0
virtual void turnReceive()
resip::RecursiveMutex mHandlerMutex
void handleReceivedData(const asio::ip::address &address, unsigned short port, const std::shared_ptr< DataBuffer > &data)
TurnAsyncSocketHandler * mTurnAsyncSocketHandler
asio::error_code mBindError
TurnAsyncTlsSocket(asio::io_context &ioService, asio::ssl::context &sslContext, bool validateServerCertificateHostname, TurnAsyncSocketHandler *turnAsyncSocketHandler, const asio::ip::address &address=UnspecifiedIpAddress, unsigned short port=0)
virtual unsigned int getSocketDescriptor()
dcm! – add UnusedChecking(_enum) below;
std::unique_lock< RecursiveMutex > RecursiveLock