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:
committed by
Matias Fontanini
parent
8afc784956
commit
1552e33c67
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user