• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Is a remote port "in use"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Old System Configuration Framework APIs
  • Next by Date: Re: Using CFNetwork on 10.1
  • Previous by thread: Old System Configuration Framework APIs
  • Next by thread: Re: Using CFNetwork on 10.1
  • Index(es):
    • Date
    • Thread