Reminder:
A threaded program ran inside gdb and using blocking sockets will stop on a sigcatch : EINTR
Related stackoverflow link:
https://stackoverflow.com/questions/51666259/why-recv-returns-1-and-errno-eintr-when-set-so-rcvtimeo
Reminder:
A threaded program ran inside gdb and using blocking sockets will stop on a sigcatch : EINTR
Related stackoverflow link:
https://stackoverflow.com/questions/51666259/why-recv-returns-1-and-errno-eintr-when-set-so-rcvtimeo
A friend using my networking code made the good point that it was not correctly reporting errors on some windows compilers.
I hope we got this sorted out.
Grab / update your code from the git repo: https://framagit.org/GullRaDriel/nilorea-library
Added:
-netw_unload() =>macro who calls WSACleanup . Call it before exiting (on OK or error). Does nothing on *nix/*nux
-netw_set_blocking(…) => set blocking mode on a network
Internals:
-neterr => WSAGetLastError or errno
-netstrerr => FormatMessage or strerror (strerror_r wrapper is quoted because not working on redhat)
This has caused a full revamping of all error management, but now it’s ok. Valgrind checked.
#nilorea-library #networking #winsock #socket