some basic client-server socket communication