Design Patterns
tcp_established.h
Go to the documentation of this file.
1 // Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
2 // book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
3 //
4 // Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan.
5 
6 #ifndef OPERATIONAL_STATE_TCP_ESTABLISHED_H_
7 #define OPERATIONAL_STATE_TCP_ESTABLISHED_H_
8 
9 #include "tcp_state.h"
10 
11 namespace operational
12 {
13 namespace state
14 {
15 class TcpEstablished : public TcpState
16 {
17  public:
19 
20  void Initialize(TcpState* listen, TcpState* closed);
21 
22  virtual void Transmit(TcpConnection*, TcpOctetStream*) override;
23  virtual void Acknowledge(TcpConnection*) override;
24  virtual void Close(TcpConnection*) override;
25 
26  virtual std::string Info() const override;
27 
28  private:
29  TcpState* listen_;
30  TcpState* closed_;
31 };
32 }
33 }
34 
35 #endif
36 
virtual std::string Info() const override
Definition: tcp_established.cc:29
Definition: application.cc:10
Definition: tcp_octet_stream.h:13
virtual void Transmit(TcpConnection *, TcpOctetStream *) override
Definition: tcp_established.cc:34
Definition: tcp_state.h:15
void Initialize(TcpState *listen, TcpState *closed)
Definition: tcp_established.cc:14
virtual void Close(TcpConnection *) override
Definition: tcp_established.cc:20
virtual void Acknowledge(TcpConnection *) override
Definition: tcp_established.cc:39
Definition: tcp_established.h:15
TcpEstablished()
Definition: tcp_established.cc:12
Definition: tcp_connection.h:17