home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / programm / 4472 < prev    next >
Encoding:
Text File  |  1992-08-27  |  1.2 KB  |  30 lines

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