This one is good:
Using the new Socket module, I am able to rewrite:
socket(S, $AF_INET, $SOCK_STREAM, $proto)
where $proto = 6 (tcp), and the other two were assigned pseudo-constants, with:
socket(S, AF_INET, SOCK_STREAM, $proto)
where $proto = (getprotobyname)[2] and the inner two are the functions exported
by Socket.
Only I get an error "Protocol not supported". The value stuffed into $proto is
6, just like when it was hard-coded, and AF_INET and SOCK_STREAM return values
identical to the hard-coded in the old. But the old still works, while this
error keeps occuring. Is the Socket module providing a different socket()
call?
Randy
--
^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^
Randy J. Ray -- U S WEST Technologies IAD/CSS/DPDS Phone: (303)607-5268
Denver, CO rjray@lookout.ecte.uswc.uswest.com
I don't suffer from insanity. I enjoy every minute of it.
Using the new Socket module, I am able to rewrite:
socket(S, $AF_INET, $SOCK_STREAM, $proto)
where $proto = 6 (tcp), and the other two were assigned pseudo-constants, with:
socket(S, AF_INET, SOCK_STREAM, $proto)
where $proto = (getprotobyname)[2] and the inner two are the functions exported
by Socket.
Only I get an error "Protocol not supported". The value stuffed into $proto is
6, just like when it was hard-coded, and AF_INET and SOCK_STREAM return values
identical to the hard-coded in the old. But the old still works, while this
error keeps occuring. Is the Socket module providing a different socket()
call?
Randy
--
^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^
Randy J. Ray -- U S WEST Technologies IAD/CSS/DPDS Phone: (303)607-5268
Denver, CO rjray@lookout.ecte.uswc.uswest.com
I don't suffer from insanity. I enjoy every minute of it.