in getprotoent return 0 rather than null if we reach eof in our protocol database
replace PROTOCOL_LIST and PROTOCOL_MAP with a Protocols object containing a list and a map instance