home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.programmer
- Path: sparky!uunet!munnari.oz.au!uniwa!DIALix!zeus!peter
- From: peter@zeus.dialix.oz.au (Peter Wemm)
- Subject: Dumb question: How do I find the remote address on a TLI connection
- Message-ID: <Btnw0o.1so@zeus.dialix.oz.au>
- Organization: Karam Pty. Ltd. Perth, Australia
- Date: Thu, 27 Aug 1992 21:36:24 GMT
- Lines: 20
-
- OK, first I'll point out that I have no manuals....
-
- I have a certain program that would be useful if run under the listener
- on SVR4. Anyway, it is invoked with a net.connection on fd 0.
- How can I find the remote address info? A quick RTFM yielded little.
-
- The original program used socket calls to find the address, but for TLI
- this is not possible.
-
- Any suggestions?
-
- A quick fix would be appreciated, but it's not critical - the address info
- is for utmpx logging (IE: it would be nice, but nobody would loose sleep..)
-
- (I know, I know, find Stevens' book... but I want to do this yesterday.. :-)
- --
- Peter Wemm : peter@zeus.dialix.oz.au If it's broke, fix it (The MS-DOS way)
- Work phone: +61-9-479-1855 If it aint broke, don't touch it (The Unix way)
- Fax: +61-9-479-1134 If we can't fix it, it ain't broke (Maintainer's Motto)
- "Don't give me that intelligent life cr*p, find me something to blow up!"
-