home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / vmsnet / networks / tcpip / multinet / 2351 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  1.5 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!sdd.hp.com!elroy.jpl.nasa.gov!nntp-server.caltech.edu!tacos.caltech.edu!rtm
  2. From: rtm@tacos.caltech.edu (Raoul Machilvich)
  3. Newsgroups: vmsnet.networks.tcp-ip.multinet
  4. Subject: How can I get a free port number?
  5. Date: 11 Nov 1992 04:14 PST
  6. Organization: California Institute of Technology
  7. Lines: 22
  8. Distribution: world
  9. Message-ID: <11NOV199204141697@tacos.caltech.edu>
  10. NNTP-Posting-Host: tacos.caltech.edu
  11. News-Software: VAX/VMS VNEWS 1.40    
  12.  
  13. Hi,
  14.  
  15.     I am running Multinet 3.0 Rev. A.   I was wondering if anyone could help
  16. me with the following problem.
  17.  
  18.     I have a computer which is booted via TCP from a VMS VAX.   For reasons that
  19. are long and boring, I must supply the remote computer with the number of
  20. an unused TCP/IP port.   This port must not be in use, in any state, at
  21. the time the computer boots.   Is there any call or combination of calls
  22. that I could make to the Multinet subroutine library that would report to
  23. me an unused, or free, port number?   Alternatively, I could just sequentially
  24. try port numbers if I knew of a subroutine that would tell me if a port
  25. was in use (it must not even be in a time-out or fin_wait state).   I'm
  26. currently using a subroutine that examines the output of the
  27. MULTINET SHOW/CONN command, and finds a free port by brute force, but
  28. this is apt to win me few points for either elegance or efficiency.
  29.  
  30.                             Thanks
  31.                             Taco (*)
  32.                             rtm@tacos.caltech.edu
  33.  
  34. (*) The most irresponsible hiker Mark "Dolson" has ever known.
  35.