Initial version of TCP server