carric has asked for the wisdom of the Perl Monks concerning the following question:
Gentlemen,
I have been looking through the nodes for some mention of this, and I can't seem to find one.
I want to be able to translate a list of port numbers into their respective service names. e.g.:
tcp21: ftp
tcp22: ssh
tcp23: telnet
udp53: named
etc...
Anyone know how to do this? Thanks in advance!!
***UPDATE***
The function I was looking for appears to be getsrvbyport(), but the docs are a bit sparse.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Service: port to name
by BazB (Priest) on Mar 21, 2004 at 18:20 UTC | |
by carric (Beadle) on Mar 21, 2004 at 18:37 UTC | |
by carric (Beadle) on Mar 21, 2004 at 18:30 UTC | |
Re: Service: port to name
by chip (Curate) on Mar 21, 2004 at 22:42 UTC | |
Re: Service: port to name
by jeffa (Bishop) on Mar 21, 2004 at 18:13 UTC | |
Re: Service: port to name
by pbeckingham (Parson) on Mar 21, 2004 at 18:07 UTC | |
Re: Service: port to name
by The Mad Hatter (Priest) on Mar 21, 2004 at 18:17 UTC |