Is a remote port "in use"?
Is a remote port "in use"?
- Subject: Is a remote port "in use"?
- From: "Rice, Gary" <email@hidden>
- Date: Mon, 20 May 2002 12:38:34 -0400
I'm writing a client/server app that connects to a remote node using one of
several ports (1024 thru 1027). The design requires that my app skip any of
the ports that already have a connection (only 1 connection per port is
"allowed"). My client app will be running on only 1 machine but could
potentially connect to any number of server machines (each one hosting ports
1024 thru 1027) in a semi-random way.
Is there a way to ask the potential remote server if a particular port is
already taken by another thread in my app or is it simply better to maintain
a list of connections and answer the "is the port in use" question locally
via a table?
Mac OS 8.6 thru 9.2.2 only. OSX support is not planned.
Thanks.
Gary
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.