Five Pitfalls of Linux Sockets Programming (developerWorks)
Posted Sep 21, 2005 14:30 UTC (Wed) by
hppnq (guest, #14462)
In reply to:
Five Pitfalls of Linux Sockets Programming (developerWorks) by RobSeace
Parent article:
Five Pitfalls of Linux Sockets Programming (developerWorks)
The eh, Six Pitfalls of Linux Sockets Programming eh? ;-)
Minor nitpick: if you pass in a length of 0, send(2) and friends will surely return either 0 or -1, but the opposite is not necessarily true: a return value of 0 means "0 bytes sent", which may be either because length == 0 or just because you have no data to send. ;-)
(
Log in to post comments)