[TriLUG] C & sockets programming question
Charles Fischer
fischer at 4pi.com
Wed Jul 27 15:50:57 EDT 2005
I am patching a C program that opens a TCP/IP socket and listens. When
"accept" returns a connecting socket, the program calls a read routine that
does some checking. It would be nice if this read routine knew the
interface's name (ie, lo, eth0 or eth1). Does anybody know how to get the
interface's name from the socket ID (file ID)?
Thanks
Charles Fischer
More information about the TriLUG
mailing list