30 #ifndef TINS_TCP_IP_STREAM_ID_H 31 #define TINS_TCP_IP_STREAM_ID_H 33 #include <tins/config.h> 35 #ifdef TINS_HAVE_TCPIP 59 struct StreamIdentifier {
63 typedef std::array<uint8_t, 16> address_type;
78 StreamIdentifier(
const address_type& client_addr, uint16_t client_port,
79 const address_type& server_addr, uint16_t server_port);
84 bool operator<(
const StreamIdentifier& rhs)
const;
89 bool operator==(
const StreamIdentifier& rhs)
const;
91 address_type min_address;
92 address_type max_address;
93 uint16_t min_address_port;
94 uint16_t max_address_port;
96 static StreamIdentifier make_identifier(
const PDU& packet);
97 static StreamIdentifier make_identifier(
const Stream& stream);
98 static address_type serialize(IPv4Address address);
99 static address_type serialize(
const IPv6Address& address);
105 #endif // TINS_HAVE_TCPIP 106 #endif // TINS_TCP_IP_STREAM_ID_H bool operator==(const PDUIteratorBase< Concrete > &lhs, const PDUIteratorBase< Concrete > &rhs)
Definition: pdu_iterator.h:108
The Tins namespace.
Definition: address_range.h:38