nametoportrange
fn
int nametoportrange(string name, out int portLow, out int portHigh, out int proto)Resolves a service name to its port range and protocol.
Parameters
name | The service name. |
portLow | Receives the start of the port range. |
portHigh | Receives the end of the port range. |
proto | Receives the protocol number. |
Returns
0 on success, -1 if not found.