Beispiel #1
0
 public override void Send(TCPConnection tCPConnection)
 {
     Console.WriteLine("--------------ListeningState----------------");
     Console.WriteLine("--------------send Syn ,receive syn ,ack ,etc----------------");
     ChangeState(tCPConnection, TCPEstablished.Instance());
     Console.WriteLine("--------------EstablishedState----------------");
 }
Beispiel #2
0
 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----------------");
 }