mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-11 05:43:33 +00:00
1. Fixed edge case bug, where TLS packet was corrupt
2. Added compile switch for KVM ALL TILES 3. Added compile switch for Debug fragmentation of Sends 4. Fixed compiler warnings 5. Added comments to makefile
This commit is contained in:
@@ -251,7 +251,15 @@ void ILibDuktape_net_socket_OnSendOK(ILibAsyncSocket_SocketModule socketModule,
|
||||
ILibTransport_DoneState ILibDuktape_net_socket_WriteHandler(ILibDuktape_DuplexStream *stream, char *buffer, int bufferLen, void *user)
|
||||
{
|
||||
ILibDuktape_net_socket *ptrs = (ILibDuktape_net_socket*)user;
|
||||
#ifdef _DEBUG_NET_FRAGMENT_SEND
|
||||
int x = bufferLen / 2;
|
||||
printf("** Send 1/2: %d of %d bytes\n", x, bufferLen);
|
||||
ILibAsyncSocket_Send(ptrs->socketModule, buffer, x, ILibAsyncSocket_MemoryOwnership_USER);
|
||||
printf("** Send 2/2: %d of %d bytes\n", bufferLen - x, bufferLen);
|
||||
return((ILibTransport_DoneState)ILibAsyncSocket_Send(ptrs->socketModule, buffer + x, bufferLen - x, ILibAsyncSocket_MemoryOwnership_USER));
|
||||
#else
|
||||
return((ILibTransport_DoneState)ILibAsyncSocket_Send(ptrs->socketModule, buffer, bufferLen, ILibAsyncSocket_MemoryOwnership_USER));
|
||||
#endif
|
||||
}
|
||||
void ILibDuktape_net_socket_EndHandler(ILibDuktape_DuplexStream *stream, void *user)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user