1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Add helper function to create StreamIdentifier from const Stream& (#152)

This commit is contained in:
Jacob Parker
2016-06-07 16:19:55 -04:00
committed by Matias Fontanini
parent 8afc784956
commit 1552e33c67
2 changed files with 14 additions and 0 deletions

View File

@@ -45,6 +45,8 @@ class IPv6Address;
namespace TCPIP {
class Stream;
/**
* \brief Uniquely identifies a stream.
*
@@ -92,6 +94,7 @@ struct StreamIdentifier {
uint16_t max_address_port;
static StreamIdentifier make_identifier(const PDU& packet);
static StreamIdentifier make_identifier(const Stream& stream);
static address_type serialize(IPv4Address address);
static address_type serialize(const IPv6Address& address);
};