public override void Send(TCPConnection tCPConnection) { Console.WriteLine("--------------ListeningState----------------"); Console.WriteLine("--------------send Syn ,receive syn ,ack ,etc----------------"); ChangeState(tCPConnection, TCPEstablished.Instance()); Console.WriteLine("--------------EstablishedState----------------"); }
public override void ActiveOpen(TCPConnection tCPConnection) { Console.WriteLine("--------------ClosedState----------------"); Console.WriteLine("ActiveOpen ---send Syn,receive syn、ack,etc. "); ChangeState(tCPConnection, TCPEstablished.Instance()); Console.WriteLine("--------------EstablishedState----------------"); }