mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-09 20:13:56 +00:00
Updated JS WebRTC debug hooks
This commit is contained in:
@@ -912,6 +912,10 @@ typedef struct ILibSCTP_HoldingQueueFlags
|
||||
|
||||
#define ILibSCTP_GetHoldingQueueFlags(node) ((ILibSCTP_HoldingQueueFlags*)ILibLinkedList_GetExtendedMemory(node))
|
||||
|
||||
void* ILibWebRTC_Dtls2SSL(void *dtls)
|
||||
{
|
||||
return((void*)((ILibStun_dTlsSession*)dtls)->ssl);
|
||||
}
|
||||
void ILibWebRTC_DTLS_HandshakeDetect(struct ILibStun_Module* obj, char* directionPrefix, char* buffer, int offset, int length)
|
||||
{
|
||||
ILibWebRTC_DTLS_ContentTypes contentType = (ILibWebRTC_DTLS_ContentTypes)buffer[offset+0];
|
||||
@@ -3273,7 +3277,7 @@ ILibTransport_DoneState ILibStun_SctpSendDataEx(struct ILibStun_Module *obj, int
|
||||
// Only set the T3RTX timer if it is not already running
|
||||
obj->dTlsSessions[session]->T3RTXTIME = rpacket->LastSentTimeStamp;
|
||||
#ifdef _WEBRTCDEBUG
|
||||
if (obj->dTlsSessions[session]->onT3RTX != NULL){ obj->dTlsSessions[session]->onT3RTX(obj, "OnT3RTX", obj->dTlsSessions[session]->RTO); }
|
||||
if (obj->dTlsSessions[session]->onT3RTX != NULL){ obj->dTlsSessions[session]->onT3RTX(obj->dTlsSessions[session], "OnT3RTX", obj->dTlsSessions[session]->RTO); }
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -162,6 +162,8 @@ int ILibSCTP_DoesPeerSupportFeature(void* SctpSession, int feature);
|
||||
void ILibSCTP_Pause(void* SctpSession);
|
||||
void ILibSCTP_Resume(void* SctpSession);
|
||||
|
||||
void* ILibWebRTC_Dtls2SSL(void *dtls);
|
||||
|
||||
void ILibSCTP_SetCallbacks(void* StunModule, ILibSCTP_OnConnect onconnect, ILibSCTP_OnData ondata, ILibSCTP_OnSendOK onsendok);
|
||||
ILibTransport_DoneState ILibSCTP_Send(void* SctpSession, unsigned short streamId, char* data, int datalen);
|
||||
ILibTransport_DoneState ILibSCTP_SendEx(void* SctpSession, unsigned short streamId, char* data, int datalen, int dataType);
|
||||
|
||||
@@ -108,7 +108,10 @@ void* ILibWrapper_WebRTC_Connection_GetStunModule(ILibWrapper_WebRTC_Connection
|
||||
{
|
||||
return(((ILibWrapper_WebRTC_ConnectionStruct*)connection)->mFactory->mStunModule);
|
||||
}
|
||||
|
||||
void* ILibWrapper_WebRTC_DtlsSessionToSSL(void *dtls)
|
||||
{
|
||||
return(ILibWebRTC_Dtls2SSL(dtls));
|
||||
}
|
||||
ILibTransport_DoneState ILibWrapper_ILibTransport_SendSink(void *transport, char* buffer, int bufferLength, ILibTransport_MemoryOwnership ownership, ILibTransport_DoneState done)
|
||||
{
|
||||
ILibTransport_DoneState retVal = ILibWrapper_WebRTC_DataChannel_Send((ILibWrapper_WebRTC_DataChannel*)transport, buffer, bufferLength);
|
||||
|
||||
@@ -213,6 +213,7 @@ ILibWrapper_WebRTC_Connection ILibWrapper_WebRTC_ConnectionFactory_CreateConnect
|
||||
int ILibWrapper_WebRTC_Connection_GetID(ILibWrapper_WebRTC_Connection connection);
|
||||
char* ILibWrapper_WebRTC_Connection_GetLocalUsername(ILibWrapper_WebRTC_Connection connection);
|
||||
#define ILibWrapper_WebRTC_Connection2DtlsSession(connection) ((void**)(connection))[0]
|
||||
void* ILibWrapper_WebRTC_DtlsSessionToSSL(void *dtls);
|
||||
|
||||
ILibTransport* ILibWrapper_WebRTC_Connection_GetRawTransport(ILibWrapper_WebRTC_Connection connection);
|
||||
//! Set the STUN Servers to use with the WebRTC Connection when gathering candidates
|
||||
|
||||
Reference in New Issue
Block a user