home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / next / programm / 5734 < prev    next >
Encoding:
Text File  |  1992-08-21  |  1.3 KB  |  30 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!gatech!news.byu.edu!news.mtholyoke.edu!nic.umass.edu!titan.ucc.umass.edu!a74k110
  3. From: a74k110@titan.ucc.umass.edu (Chris Lloyd)
  4. Subject: Re: NXPortNameLookup speed
  5. Message-ID: <1992Aug21.152741.2043@nic.umass.edu>
  6. Sender: usenet@nic.umass.edu (USENET News System)
  7. Nntp-Posting-Host: titan.ucc.umass.edu
  8. Organization: University of Massachusetts, Amherst
  9. References: <BtC3A1.2F5@monitor.com>
  10. Date: Fri, 21 Aug 1992 15:27:41 GMT
  11. Lines: 17
  12.  
  13. In article <BtC3A1.2F5@monitor.com> howard@monitor.com (Howard Brenner) writes:
  14. >Does anyone know a more efficient way of getting the port of a program  
  15. >running on the network other than calling NXPortNameLookup("APPNAME","*")?   
  16. >I find this to be a fairly slow call.
  17.  
  18. Avoid using the "*", it's a broadcast lookup on all the machines on your net,
  19. and if your net is big it probably gets really slow.  This also means
  20. that your lookups are affected by other machines response time to the lookup
  21. and to the usual net timeouts blah blah blah.
  22.  
  23. Maintaining a list of hosts, or just doing local lookups would probably be
  24. prudent at this juncture :)
  25.  
  26. la la la,
  27. -- 
  28. ::   Christopher Lloyd  ::  a74k110@titan.ucc.umass.edu  ::  Yrrid, Inc.    ::
  29. ::"He said he'd make me elite for $5...I think he wanted a sub or somethin'"::
  30.