The net-proto library provides an interface for get protocol information by name or by number. It can also iterate over the list of protocol entries defined on your system.
Daniel J. Berger
January 4, 2016 4:13pm
Artistic 2.0