Re: Too many ports?
Re: Too many ports?
- Subject: Re: Too many ports?
- From: Francisco Tolmasky <email@hidden>
- Date: Sat, 01 May 2004 16:02:01 -0700
Yes but my question is should the new sockets have the same port number
or a custom new one?
On May 1, 2004, at 1:52 AM, j o a r wrote:
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?
Francisco Tolmasky
email@hidden
http://www-scf.usc.edu/~tolmasky/
_______________________________________________
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.