Basic socket server and client