Please read http://libtins.github.io/tutorial/sniffing/#interpretation. That is covered in that section. The example is for UDP but it's the same as TCP.
Please read http://libtins.github.io/tutorial/sniffing/#interpretation. That is covered in that section. The example is for UDP but it's the same as TCP.