Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-adm!brl-smoke!smoke!tho%carcvax.uconn.csnet@csnet-relay.arpa From: tho%carcvax.uconn.csnet@csnet-relay.arpa (Tho Tran) Newsgroups: net.unix-wizards Subject: inet ports allocation Message-ID: <2479@brl-smoke.ARPA> Date: Tue, 8-Apr-86 21:40:54 EST Article-I.D.: brl-smok.2479 Posted: Tue Apr 8 21:40:54 1986 Date-Received: Thu, 10-Apr-86 08:30:22 EST Sender: news@brl-smoke.ARPA Lines: 13 q1. Is there a way to find out whether a port number is used before doing a "bind"? As of now, you can only find out either EADDRINUSE or EADDRNOTAVAIL when you do a bind or connect. q2. If the answer is no to the q1, is there a "better" and sure way to dynamically allocate port numbers by a known server so that two processes can establish a communication path with a minimum number of retrial? Any suggestions will be greatly appreciated. -tho tho%swevax.uconn.csnet@csnet-relay