Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

djberg96 (2603)

djberg96
  (email not shown publicly)

Journal of djberg96 (2603)

Wednesday August 07, 2002
01:37 PM

proto functions

[ #6961 ]
In my effort to port Perl's Net::Ping module to Ruby, I noticed that Ruby does not define the various "proto" functions (e.g. getprotobyname, etc). No problem - I'll write an extension.

While looking at the man page for getprotoent, I noticed and read about the setprotoent function. I get it. What I don't get is *why* you would ever want to use it. Do I really need to keep a file descriptor open at a particular location so that you can have an ounce of added functionality? I say if you need that functionality, add it yourself, 'cuz there ain't nuthin' special about this file.

Quite frankly, it smacks of some propeller head who happened to need this "feature" for one of his own programs and consequently decided to add it to the "standard" lib. Then again, maybe there's something I'm missing. Wouldn't be the first time.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.