@alexcrichton, I just managed to get it to compile in linux. I am now working on the windows version. I had to update the version to 2018, and am updating the code. My oh my, you've come a long ways since the days of net2!
ths IANA list for internet protocols is here , though, it's rare to pass a non-zero protocol to the socket contructor, as for most socket domain/type combos there's only one common choice (SOCK_RAW is a notable exeption).