1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-11 05:43:33 +00:00

1. Modified WebRTC_DataChannel to use union, to simplify struct def

2. Added ChainLink MetaData
3. Added 'ChainViewer' to allow JS to debug Chain events
This commit is contained in:
Bryan Roe
2019-02-01 23:33:02 -08:00
parent 88c63b2976
commit aeaa229e31
17 changed files with 148 additions and 32 deletions

View File

@@ -6370,7 +6370,7 @@ void* ILibStunClient_Start(void *Chain, unsigned short LocalPort, ILibStunClient
memset(obj, 0, sizeof(struct ILibStun_Module));
obj->State = STUN_STATUS_NOT_TESTED;
obj->StunUsers = ILibLinkedList_Create();
obj->ChainLink.MetaData = "ILibWebRTC";
obj->OnResult = OnResult;
obj->LocalIf.sin_family = AF_INET;
obj->LocalIf.sin_port = htons(LocalPort);
@@ -7045,7 +7045,7 @@ ILibTURN_ClientModule ILibTURN_CreateTurnClient(void* chain, ILibTURN_OnConnectT
retVal->OnChannelDataCallback = OnChannelData;
retVal->transactionData = ILibInitHashTree();
retVal->ChainLink.ParentChain = chain;
retVal->ChainLink.MetaData = "ILibWebRTC_TURN_Client";
ILibAddToChain(chain, retVal);
return retVal;