Added selection for client/server in SocketMain

For server mode, just launch and enter 1. For client mode, the hostname
and port number needs to be passed as command line params