mfontanini / libtins

High-level, multiplatform C++ network packet sniffing and crafting library.
http://libtins.github.io/
BSD 2-Clause "Simplified" License
1.89k stars 373 forks source link

how to call the Stream::user_data() to set and get the custom data ? #505

Closed LubinLew closed 1 year ago

LubinLew commented 1 year ago

how to call the Stream::user_data() to set and get the custom data ? I tried many ways but failed.

LubinLew commented 1 year ago

T& t = Stream::user_data<T>()