home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / protocol / tcpip / ibmpc / 7402 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1023 b   |  38 lines

  1. Newsgroups: comp.protocols.tcp-ip.ibmpc
  2. Path: sparky!uunet!comp.vuw.ac.nz!newshost!gopher!steven
  3. From: steven@gopher.dosli.govt.nz (Steven Brydon)
  4. Subject: FTP's WINSOCK implemnentation of getservbyname function
  5. Message-ID: <STEVEN.93Jan12103724@gopher.dosli.govt.nz>
  6. Sender: news@gopher.dosli.govt.nz (USENET News System)
  7. Organization: Dept. of Survey & Land Information, NZ.
  8. Distribution: comp
  9. Date: Tue, 12 Jan 1993 22:37:24 GMT
  10. Lines: 26
  11.  
  12.  
  13. I am developing a windows application and am using FTP's development kit
  14. version 2.2. 
  15.  
  16. Calling the WINSOCK getservbyname function doesn't behave as expected.
  17. My call is:
  18.  
  19.         sp = getservbyname( "quote", "tcp" )
  20.  
  21. However this returns NULL. I subsequently call WSAGetLastError which returns 0
  22. (zero) which I take to me there was no previous error.
  23.  
  24. I have the following in my pctcp.ini file [pctcp general] section.
  25.  
  26.         etc-dir=c:\etc
  27.  
  28. and within c:\etc resides the services file that FTP provided.
  29.  
  30. Anyone successfully used this function ?
  31.  
  32.  
  33.  
  34.         Steven
  35.  
  36.  
  37.         
  38.