I have been attempting for some time now to rewrite as socket programming function from Winsock to its equivalent Unix version. I am hopelessly stuck on an error with the co