IronLanguages/main — pull request #220 by fdanny (2014-09-10 02:48:49+00:00)
Title: changes to #23829, #23742, #23853, and implemented getservbyport and get...

I pulled out my pull out socket changes from pull 213 into this socket_updates branch. It contains
Only the socket.cs file. I don't play with git alot so who knows if I did this right.

item# 23853
On socket.recv timeouts CPython throws a socket.error instead of socket.timeout exception.
I didn't know how to access timeout from MakeException fuction so I check where the exception occurs at the recv function and raise a socket.error exception instead and the error message is similar to CPython 2.7.8

item# 23829

Change the exception thrown I throw PythonOps.ValueError("Timeout value out of range") instead of TypeError

item# 23742
I implemented a getservbyport and getservbyname (if approved below) which is called in the getnameinfo so it doesn't have to informce the NI_NUMERICSERV flag.