port The port number for which to search. This port number should be specified in network byte order. You can use the htons() function to convert the port number to network byte order. proto A pointer to a string containing the name of the protocol (TCP or UDP) for which to search.