a basic messaging server for use with sockets