WIP: refactored code for creating the server socket into its own function.  Also added a make_socket_non_blocking function, but only have a commented-out use of it.
WIP: refactored code for creating the server socket into its own function.  Also added a make_socket_non_blocking function, but only have a commented-out use of it.

gpjt/rsp,gpjt/rsp,gpjt/rsp