sockets
Kevin Franden
kevinf at infmx.UUCP
Thu Jun 7 23:34:26 AEST 1990
Thanks to all who replied to me. (blush, blush) Shame on me for not
reading the man pages more carefully (blush).
Still being incredibly naieve about sockets, I attempt again:
Since last time, I have managed to get somthing flying (ok, limping =-)
I have managed to talk between an unused port (I happened to be using
6000) and I managed to steal the date/time off another machine by calling
port 13.
I've got a process listening to the port on host A and then somthing
talking to the port on host B. the pairs purpose is to have A send
a string to B and have B answer back w/ a diffrent string.
I have a couple new questions now:
1) When does /etc/services come into play? I was able to talk
over port 6000 w/ no trouble (SOCK_STREAM) WITHOUT having
an entry in /etc/services. Which leads me to wonder what
exactly /etc/services does anyway. Was this a cardinal sin?
Very dangerous? Very stupid? All of the above?
2) If I understnd correctly (which I probably don't) I can
use inetd to start up my executable if there's a request
on that port. Will one of the true net.wizards help this
fledgling.wizard by explaining the functions of all these
files?
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Kevin Franden UUCP: {pyramid|lll-crg}!infmx!kevinf
Informix Software Inc
disclaimer("I said what I said and not my employer");
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
There are Lies, Damn lies, Statistics, Benchmarks, and Delivery dates
More information about the Comp.unix.wizards
mailing list