package state; public class TCPEstablished extends TCPState { public static TCPState Instance() { return new TCPEstablished(); } public void Transmit(TCPConnection conn, TCPOctetStream octStream) { super.Transmit(conn, octStream); conn.ProcessOctet(octStream); } public void Close(TCPConnection conn) { super.Close(conn); /* послать FIN, получить АСК для FIN * .... * */ /* Сменить состояние */ ChangeState(conn, TCPListen.Instance()); } }