tcp server pieces