Looks up a protocol entry based on protocol's number.
#include <prnetdb.h> PRStatus PR_GetProtoByNumber( PRInt32 protocolnumber, char* buffer, PRInt32 bufsize, PRProtoEnt* result);
The function has the following parameters:
protocolnumberbufferbufsizebuffer parameter. The buffer must be at least PR_NETDB_BUF_SIZE bytes.resultPRNetAddr 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.