a tcp server by c