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

Allow enabling attachment to partial streams

This commit is contained in:
Matias Fontanini
2016-10-30 10:21:58 -07:00
parent a61a361eb1
commit 5d6431d2d9
4 changed files with 87 additions and 0 deletions

View File

@@ -90,6 +90,9 @@ public:
/**
* The type used for packet-triggered callbacks
*
* The second and third arguments are the sequence number and payload of the packet that
* arrived out of order.
*
* /sa Flow::buffering_callback
*/
typedef std::function<void(Stream&,

View File

@@ -182,6 +182,13 @@ public:
*/
Stream& find_stream(const IPv6Address& client_addr, uint16_t client_port,
const IPv6Address& server_addr, uint16_t server_port);
/**
* \brief Indicates whether partial streams should be followed.
*
*
*/
void follow_partial_streams(bool value);
private:
typedef Stream::timestamp_type timestamp_type;