Changed the socket binding to be more efficient on Windows.
Nit fix, 3 space indents to 4 spaces.
Added test for new context.connect() function
Nit fix