Re: A intractable socket bind problem.
Re: A intractable socket bind problem.
- Subject: Re: A intractable socket bind problem.
- From: Scott Ribe <email@hidden>
- Date: Tue, 15 Feb 2005 14:46:07 -0700
> I met an intractable in socket programing.The situation is, I have two
> processes to run in turn, one opens a socket to listen connections and handles
> those requests,then it closes the listening socket and notify the other
> process open another socket on the same IP address and port to continue
> handling rest connections.
I think this is a bad idea for numerous reasons having to do with how TCP
works. The first process should choose a dynamic port and communicate that
to its client, then the second process should listen on that port. See FTP
for instance...
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 665-7007 voice
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden