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

Add flag to Stream to know whether it was attached

This commit is contained in:
Matias Fontanini
2016-10-30 10:31:16 -07:00
parent 5d6431d2d9
commit df7e7b391d
3 changed files with 18 additions and 1 deletions

View File

@@ -390,6 +390,10 @@ public:
}
#endif // TINS_HAVE_TCP_STREAM_CUSTOM_DATA
/**
* Indicates whether this is a stream that we attached to after it had actually started
*/
bool is_attached() const;
private:
static Flow extract_client_flow(const PDU& packet);
static Flow extract_server_flow(const PDU& packet);
@@ -416,6 +420,7 @@ private:
timestamp_type last_seen_;
bool auto_cleanup_client_;
bool auto_cleanup_server_;
bool is_attached_;
#ifdef TINS_HAVE_TCP_STREAM_CUSTOM_DATA
boost::any user_data_;