summaryrefslogtreecommitdiff
path: root/src/net_unix.h
AgeCommit message (Collapse)Author
2012-07-24Rework source tree layout.Andrey Nazarov
Instead of having a mix of semi-randomly prefixed .c and .h files at src/, split the sources and public headers into src/ and inc/ directories. Further partition them down per subsystem. Add include guards to public headers. Split some headers into multiple ones.
2012-07-21Protect Linux ICMP code with #if USE_ICMP.Andrey Nazarov
2012-04-03Clean up and fix sockets code.Andrey Nazarov
Get rid of ugly #ifdefs and macros. Add thin wrapper layer around socket functions to hide OS-specific details like error handling, etc. Merge IO sleep code into net_common.c. Report WSA errors in human readable way. Don't mess with net_from when handling ICMP errors on Linux. It was possible to send packet to wrong address if sento() call results in ICMP error. Fix NET_Sleepv() referencing wrong IO entry on Win32.