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