We might be missing this in the past.

This commit is contained in:
ANR2ME 2022-05-18 00:36:41 +07:00
parent d86dc0bff6
commit ff8b5d53f4

View file

@ -2171,6 +2171,8 @@ int initNetwork(SceNetAdhocctlAdhocId *adhoc_id){
setSockNoDelay((int)metasocket, 1);
// Switch to Nonblocking Behaviour
changeBlockingMode((int)metasocket, 1);
// Ignore SIGPIPE when supported (ie. BSD/MacOS)
setSockNoSIGPIPE((int)metasocket, 1);
// If Server is at localhost Try to Bind socket to specific adapter before connecting to prevent 2nd instance being recognized as already existing 127.0.0.1 by AdhocServer
// (may not works in WinXP/2003 for IPv4 due to "Weak End System" model)