Re: Too many ports?
Re: Too many ports?
- Subject: Re: Too many ports?
- From: j o a r <email@hidden>
- Date: Sat, 1 May 2004 10:52:03 +0200
The server should listen on just one port, and spin off new sockets
when a client connects, while still listening on the same port for new
connections. It's standard practice and you could find lot's of sample
code on how this is done on the net.
One such example is the sample code that is published with the "Core
Mac OS X and Unix Programming" book from BigNerdRanch. They are not
using DO, but standard BSD and CF sockets, but the theory is the same -
since the underlying technology is the same for all of them.
<
http://www.bignerdranch.com/resources/solutions.tgz>
I'm sure that you could find lots of other snippets as well if you only
look. Check Apple's sample code, the mailing list archives, Cocoa
development web sites and Google.
j o a r
On 2004-05-01, at 08.10, Francisco Tolmasky wrote:
>
OK, Im using DO over a network with rendezvous, and once a service is
>
discovered, a unique port is chosen for every server/client
>
connection. Is this going overboard? Is it possible to have a unique
>
socket for each connection but not a unique port? Or is this what I
>
should be doing?
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.