mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-24 14:49:53 -06:00
properly close sockets, so that they can be reused
This commit is contained in:
@ -766,9 +766,12 @@ void HandleTCPFrame(u8* data, int len)
|
||||
|
||||
if (flags & 0x001) // FIN
|
||||
{
|
||||
// TODO: cleverer termination?
|
||||
// also timeout etc
|
||||
// TODO: timeout etc
|
||||
printf("TCP: socket %d closing\n", sockid);
|
||||
|
||||
sock->Status = 0;
|
||||
closesocket(sock->Backend);
|
||||
sock->Backend = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user