mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 20:27:34 +08:00
支持多线程
This commit is contained in:
parent
d0a1c72fda
commit
cc960a324f
@ -227,7 +227,8 @@ namespace RTC
|
|||||||
bool handshakeDone{ false };
|
bool handshakeDone{ false };
|
||||||
bool handshakeDoneNow{ false };
|
bool handshakeDoneNow{ false };
|
||||||
std::string remoteCert;
|
std::string remoteCert;
|
||||||
static constexpr int SslReadBufferSize{ 65536 };
|
//最大不超过mtu
|
||||||
|
static constexpr int SslReadBufferSize{ 1600 };
|
||||||
uint8_t sslReadBuffer[SslReadBufferSize];
|
uint8_t sslReadBuffer[SslReadBufferSize];
|
||||||
};
|
};
|
||||||
} // namespace RTC
|
} // namespace RTC
|
||||||
|
@ -7,10 +7,6 @@
|
|||||||
namespace RTC
|
namespace RTC
|
||||||
{
|
{
|
||||||
/* Static. */
|
/* Static. */
|
||||||
|
|
||||||
static constexpr size_t StunSerializeBufferSize{ 65536 };
|
|
||||||
static uint8_t StunSerializeBuffer[StunSerializeBufferSize];
|
|
||||||
|
|
||||||
/* Instance methods. */
|
/* Instance methods. */
|
||||||
|
|
||||||
IceServer::IceServer(Listener* listener, const std::string& usernameFragment, const std::string& password)
|
IceServer::IceServer(Listener* listener, const std::string& usernameFragment, const std::string& password)
|
||||||
|
@ -106,6 +106,9 @@ namespace RTC
|
|||||||
IceState state{ IceState::NEW };
|
IceState state{ IceState::NEW };
|
||||||
std::list<RTC::TransportTuple> tuples;
|
std::list<RTC::TransportTuple> tuples;
|
||||||
RTC::TransportTuple* selectedTuple{ nullptr };
|
RTC::TransportTuple* selectedTuple{ nullptr };
|
||||||
|
//最大不超过mtu
|
||||||
|
static constexpr size_t StunSerializeBufferSize{ 1600 };
|
||||||
|
uint8_t StunSerializeBuffer[StunSerializeBufferSize];
|
||||||
};
|
};
|
||||||
} // namespace RTC
|
} // namespace RTC
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user