Fix Ticket 647, Socket bug on Mac OS X Patch kindly provided by Greg Wright
Fix Ticket 647, Socket bug on Mac OS X
Patch kindly provided by Greg Wright

iquiw/network,jspahrsummers/network,iquiw/network,Mikehunan/network,Mikehunan/network