home *** CD-ROM | disk | FTP | other *** search
- X-Gateway-Source-Info: INTERNET
- Path: sparky!uunet!elroy.jpl.nasa.gov!usc!news.service.uci.edu!unogate!mvb.saic.com!tgv.com!info-multinet
- Date: 20 NOV 92 21:04:43 GMT
- Newsgroups: vmsnet.networks.tcp-ip.multinet
- X-Return-path: <info-multinet-relay@TGV.COM>
- X-NUPop-Charset: English
- X-RFC822-From: (Matt Nowotny) <cir_jmn@vax1.utulsa.edu>
- From: <cir_jmn@vax1.utulsa.edu>
- Subject: RE:How can I get a free port number?
- Organization: The INFO-MULTINET Community
- Message-ID: <36A00FB320NOV92210443@TGV.COM>
- Nntp-Posting-Host: Mvb.Saic.Com
- Lines: 34
-
- In Message 11 Nov 1992 04:14 PST,
- rtm@tacos.caltech.edu (Raoul Machilvich) writes:
-
- >Hi,
- >
- > I am running Multinet 3.0 Rev. A. I was wondering if anyone could help
- >me with the following problem.
- >
- > I have a computer which is booted via TCP from a VMS VAX. For reasons that
- >are long and boring, I must supply the remote computer with the number of
- >an unused TCP/IP port. This port must not be in use, in any state, at
- >the time the computer boots. Is there any call or combination of calls
- >that I could make to the Multinet subroutine library that would report to
- >me an unused, or free, port number? Alternatively, I could just sequentially
- >try port numbers if I knew of a subroutine that would tell me if a port
- >was in use (it must not even be in a time-out or fin_wait state). I'm
- >currently using a subroutine that examines the output of the
- >MULTINET SHOW/CONN command, and finds a free port by brute force, but
- >this is apt to win me few points for either elegance or efficiency.
- >
- > Thanks
- > Taco (*)
- > rtm@tacos.caltech.edu
- >
- >(*) The most irresponsible hiker Mark "Dolson" has ever known.
-
- How about mu config/server and list the ports that you have configured? I
- know, it's not a lot better than your idea.
- =======================================================================
- Matt Nowotny CIR_JMN@VAX1.UTULSA.EDU
- University of Tulsa - CIR
- Zink Hall Rm.136
- 918-631-2366
-