in reply to Re: Determinine Protocol In inetd.
in thread Determinine Protocol In inetd.
You can, however, get the info you want if you are using Linux. I don't know about other OSs as I don't have any other development platforms here. If you do a
it will (should?) return SOCK_STREAM for stream (TCP) sockets and SOCK_DGRAM for datagram (UDP) sockets. This looks like it works from C, but on my perl5.005003 it seems to have a problem. Maybe it's my system...getsockopt SOCK, SOL_SOCKET, SO_TYPE;
HTH, traveler
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Determinine Protocol In inetd.
by Rhandom (Curate) on Apr 30, 2001 at 17:28 UTC |