Answer the question
In order to leave comments, you need to log in
Is it possible to track Internet traffic using Go (and its libraries)?
Can Go (and its libraries) keep track of which application is using the internet?
Like glasswire . That is, if the application uses the Internet - it is fixed as well as its location.
Searched for queries like -
golang internet traffic monitoringbut didn't find anything. Or, in the case of windows, is it possible to implement this only on .NET?
Answer the question
In order to leave comments, you need to log in
The first is calls from x functions in your program to go
https://github.com/hanselrd/go-c-interop
iphlpapi.dll, display total traffic using the GetIfTable() function
https://docs.microsoft.com/en -us/windows/win32/api...
Traffic interception can be done using the package https://github.com/google/gopacket
It is based on libpcap
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question