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----------------"); }
public override void PassiveOpen(TCPConnection tCPConnection) { Console.WriteLine("--------------ClosedState----------------"); Console.WriteLine("PassiveOpen "); ChangeState(tCPConnection, TCPListen.Instance()); Console.WriteLine("--------------ListeningState----------------"); }