支持多线程

This commit is contained in:
ziyue 2021-03-27 10:07:06 +08:00
parent d0a1c72fda
commit cc960a324f
3 changed files with 5 additions and 5 deletions

View File

@ -227,7 +227,8 @@ namespace RTC
bool handshakeDone{ false };
bool handshakeDoneNow{ false };
std::string remoteCert;
static constexpr int SslReadBufferSize{ 65536 };
//最大不超过mtu
static constexpr int SslReadBufferSize{ 1600 };
uint8_t sslReadBuffer[SslReadBufferSize];
};
} // namespace RTC

View File

@ -7,10 +7,6 @@
namespace RTC
{
/* Static. */
static constexpr size_t StunSerializeBufferSize{ 65536 };
static uint8_t StunSerializeBuffer[StunSerializeBufferSize];
/* Instance methods. */
IceServer::IceServer(Listener* listener, const std::string& usernameFragment, const std::string& password)

View File

@ -106,6 +106,9 @@ namespace RTC
IceState state{ IceState::NEW };
std::list<RTC::TransportTuple> tuples;
RTC::TransportTuple* selectedTuple{ nullptr };
//最大不超过mtu
static constexpr size_t StunSerializeBufferSize{ 1600 };
uint8_t StunSerializeBuffer[StunSerializeBufferSize];
};
} // namespace RTC