home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / rec / games / mud / misc / 1730 < prev    next >
Encoding:
Text File  |  1992-12-24  |  923 b   |  25 lines

  1. Newsgroups: rec.games.mud.misc
  2. Path: sparky!uunet!paladin.american.edu!gatech!psuvax1!atlantis.psu.edu!handel!stine
  3. From: stine@handel.psu.edu (Jeffrey Stine)
  4. Subject: Re: Note to any fellow DikuMUD coders...
  5. Message-ID: <lek1Hah5mb@atlantis.psu.edu>
  6. Sender: news@atlantis.psu.edu (Usenet)
  7. Organization: Penn State University
  8. References: <3331@bsu-cs.bsu.edu> <1992Dec24.114107.18992@meiko.com> <9212241834.AA23599@TIS.COM>
  9. Date: Thu, 24 Dec 92 23:24:02 GMT
  10. Lines: 13
  11.  
  12. In article <9212241834.AA23599@TIS.COM> mjr@TIS.COM writes:
  13. >>    sprintf (currentConnectId, "%d.%d.%d.%d",
  14. >>        foo.sa_data [2] & 0xFF, foo.sa_data [3] & 0xFF,
  15. >>        foo.sa_data [4] & 0xFF, foo.sa_data [5] & 0xFF) ;
  16. >
  17. >    What is this vomit? Use inet_ntoa().
  18. >
  19. >mjr.
  20.  
  21. I've worked on machines where this call did not work and would produce a
  22. seg fault. There is nothing wrong with transforming the address this way
  23. provided it is done correctly.
  24.  
  25.