added thread structureto tcp_server