mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-15 07:43:50 +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:
@@ -443,7 +443,7 @@ ILibTransport_DoneState ILibAsyncSocket_TransportSend(void *transport, char* buf
|
||||
ILibAsyncSocket_SocketModule ILibCreateAsyncSocketModuleWithMemory(void *Chain, int initialBufferSize, ILibAsyncSocket_OnData OnData, ILibAsyncSocket_OnConnect OnConnect, ILibAsyncSocket_OnDisconnect OnDisconnect, ILibAsyncSocket_OnSendOK OnSendOK, int UserMappedMemorySize)
|
||||
{
|
||||
struct ILibAsyncSocketModule *RetVal = (struct ILibAsyncSocketModule*)ILibChain_Link_Allocate(sizeof(struct ILibAsyncSocketModule), UserMappedMemorySize);
|
||||
|
||||
RetVal->Transport.ChainLink.MetaData = "ILibAsyncSocket";
|
||||
RetVal->Transport.IdentifierFlags = ILibTransports_AsyncSocket;
|
||||
RetVal->Transport.SendPtr = &ILibAsyncSocket_TransportSend;
|
||||
RetVal->Transport.ClosePtr = &ILibAsyncSocket_Disconnect;
|
||||
|
||||
Reference in New Issue
Block a user