socket file renamed into network; tcp server function added.