RE: Problem in CFSocket
RE: Problem in CFSocket
- Subject: RE: Problem in CFSocket
- From: Pranav Kumar Sahu <email@hidden>
- Date: Tue, 13 Aug 2002 10:10:16 +0530
Ya thats what i thought of and i set my socket options with SO_REUSEADDR and
SO_REUSEPORT. But still the problem exists. Client to my socket is a FTP
client. I have checked closing of the sockets and i have set linger option
and closing it after a shutdown. Is this anything to do with time params?
-----Original Message-----
From: Douglas Davidson [
mailto:email@hidden]
Sent: Monday, August 12, 2002 11:12 PM
To: Pranav Kumar Sahu
Cc: email@hidden
Subject: Re: Problem in CFSocket
On Thursday, August 8, 2002, at 12:36 AM, Pranav Kumar Sahu wrote:
>
It's amaging....I am using CFSocket for an accept callback. it calls
>
first time from my application loop. Next time when i am runing my
>
application it does not call the application... If i wait for around 5
>
to 7
>
approx mins and run my application it again calls the callback.. Had
>
any one
>
faced such problem ?
If I understand what you are asking, this is an issue with the
underlying socket, not with CFSocket. You can use setsockopt with
SO_REUSEADDR and/or SO_REUSEPORT, but you should read up on the
consequences of this. Stevens or any decent BSD networking book should
have a discussion.
Douglas Davidson
_______________________________________________
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.