home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / d / d-linux.zip / dm-dist / README.linux < prev    next >
Text File  |  1992-11-24  |  2KB  |  42 lines

  1. I had to make modifications to the code mostly in comm.c.  Some of the 
  2. socket handling stuff did not seem neccessary.  One problem was with 
  3. gethostbyname() function call.  For some reason this allways returned 
  4. NULL on my machine.  Of course, I may not have tcp/ip set up correctly on 
  5. my machine, but looking at the code, the only reason to call this function
  6. was to get the type of the address being returned.  Since other OS's use
  7. AF_INET for this I just hardcoded it in.  I think this will be ok (read
  8. it works on my machine).
  9.  
  10. Some other stuff was that linux uses 
  11. struct sockaddr_in
  12. instead of 
  13. struct sockaddr
  14. for some of the calls to bind.  This caused a few problems but looking at 
  15. the structure themselves, they seems fairly interchangeable so I just cast
  16. it to get rid of the warning. 
  17.  
  18. Lastly there was the strdup() function in utility.c that is about the same
  19. as the strdup written in linux, so I just commented tthe strdup in utility.c 
  20. out and took out some of the prototypes.  
  21.  
  22. There are still some warning with the signals but this code works on ONE 
  23. machine... i.e. I am not connected to any network so have no way to test
  24. from another machine.  However, I can use telnet to connect to the game 
  25. from my own machine.  
  26.  
  27. Oh... the standard disclaimers apply here.... I am not responsible for any
  28. lost or stolen articles or broken systems or hair pulled out.  I am especially 
  29. not responsible for any effect this game may have on your grades or your
  30. system.  If the game trashes your system, I'll cry for you but that is about
  31. all I can do.  
  32.  
  33. Just for reference.  I am running on SLS 98p5
  34.  
  35. If you have any questions, feel free to email me... However, this does not 
  36. mean that I will have an answer....
  37.  
  38. Good Luck 
  39. *smile*
  40.  
  41.  
  42.