Hey there ppl.
I'm sure someone knows this but again, I'm pretty clueless. (how unusual. :-)
Anyway, I'm calling a program through inetd.conf & services etc.
No problems so far.
The thing is that I NEED the program I'm calling to know WHO is calling it.
Functions like getpeername() expect you to open & bind local sockets, so
I guess those are useless.
----------------------------------------
So I guess my question is: How can a program "see" where it is getting
a TCP connection from if it's invoked by telnetd.
-- A small code example would be great.
-- Just a function-name would be just as cool.
Thank you,
MikeE