metamusic
Re:Netcat.c
on Tuesday July 21, 2015 @04:47PM (#9925687)
My favorite function names: gethostpoop and getportpoop, hailing from the get*poop family.
I posted it, but didn't edit the title. I'm assuming a moderator did that, but the reason for it escapes me.
Netcat.c
http://www.opensource.apple.com/source/netcat/netcat-4/netcat/netcat.c
Some highlights:1. Take a look at 'gethostpoop' 2. Take a look at 'getportpoop' 3. Make sure to read the netdb.h rant in the function above. 4. #ifdef GAPING_SECURITY_HOLENearly half the comments in the file are taking the piss out of BSD sockets. Enjoy!