home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / protocol / tcpip / ibmpc / 7756 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.2 KB  |  32 lines

  1. Newsgroups: comp.protocols.tcp-ip.ibmpc
  2. Path: sparky!uunet!spool.mu.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!csus.edu!netcom.com!gtynen
  3. From: gtynen@netcom.com (Gerard Tynen)
  4. Subject: gethostbyname() in TSR under Sun PC-NFS
  5. Message-ID: <1993Jan28.215931.3024@netcom.com>
  6. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  7. Date: Thu, 28 Jan 1993 21:59:31 GMT
  8. Lines: 22
  9.  
  10. I'm writing a TSR for some of the socket functions in my application
  11. so that they do not need to be aware of what TCP/IP is in place on the
  12. machine.  I have been succesful with Novell's LWP and FTP's TCP/IP.  
  13. However, with Sun's PCNFS, I have been unable to get the gethostbyname()
  14. function to work when called inside a TSR.  This function works fine
  15. in the other socket implementations.
  16.  
  17. gethostbyname() sets h_errno to NO_RECOVERY.  If I do a gethostent() errno
  18. gets set to ENOMEM.  This is under small and medium memory models.  So I'm
  19. running out of memory, but how much memory could a gethostbyname() really
  20. need?
  21.  
  22. Has anyone ever succeeded making gethostbyname() work in a TSR like this?
  23.  
  24.  
  25. -- 
  26. _________________________________
  27.  
  28. --G. Tynen
  29.  
  30. Internet: gtynen@interbase.borland.com
  31.  
  32.