A cross platform socket server example