Get TCP packet information

Hello, I need to get information about the TCP connection, namely, to get information about the received packets, I establish a TCP connection, but I don’t understand how to proceed, how to access the socket? What tools does Go have for this? to output the received packets to the program? Please help me figure it out.

everything, understood, can be used to work with packages github.com/google/gopacket

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.