Looks up a protocol entry based on the protocol's name.
#include <prnetdb.h> PRStatus PR_GetProtoByName( const char* protocolname, char* buffer, PRInt32 bufsize, PRProtoEnt* result);
The function has the following parameters:
protocolnamebufferbufsizebuffer parameter. The buffer must be at least PR_NETDB_BUF_SIZE bytes.resultPRProtoEnt structure. On output, this structure is filled in by the runtime if the function returns PR_SUCCESS.The function returns one of the following values:
PR_SUCCESS.PR_FAILURE. You can retrieve the reason for the failure by calling PR_GetError.