Example #1
0
 public override void Close(TCPConnection tCPConnection)
 {
     Console.WriteLine("--------------EstablishedState----------------");
     Console.WriteLine("Close ---send FIN,receive ack of FIN. ");
     ChangeState(tCPConnection, TCPListen.Instance());
     Console.WriteLine("--------------ListeningState----------------");
 }
Example #2
0
 public override void PassiveOpen(TCPConnection tCPConnection)
 {
     Console.WriteLine("--------------ClosedState----------------");
     Console.WriteLine("PassiveOpen  ");
     ChangeState(tCPConnection, TCPListen.Instance());
     Console.WriteLine("--------------ListeningState----------------");
 }