General purpose Socket server