Update sock.c

update socket cross-platform code