I developed a TCP backend using boost asio and now I need to access the whole TCP packet (header + body). It is possible using TCP sockets?
Asked
Active
Viewed 319 times
3
-
1You need raw sockets (`SOCK_RAW`) to access TCP header (and IP header) and payload (it is not called body - don't confuse this with HTTP). – Steffen Ullrich Oct 03 '18 at 18:00
-
Not that most platforms restrict access to RAW sockets to admin users only. – Remy Lebeau Oct 03 '18 at 19:15