public void ChangeState(TCPState state) { this.state = state; Console.WriteLine($"{this.Name}'s connection state is changed to {state.Name}."); }
protected TCPConnection(string name, TCPState state) : base(name) { this.state = state; }