Re: Aborting an FTP Stream
Re: Aborting an FTP Stream
- Subject: Re: Aborting an FTP Stream
- From: Frederick Cheung <email@hidden>
- Date: Sun, 27 Feb 2005 10:09:08 +0000
On 26 Feb 2005, at 20:06, email@hidden wrote:
Date: Fri, 25 Feb 2005 14:29:40 -0800
From: "Wells, Terry C" <email@hidden>
Subject: Aborting an FTP Stream
To: <email@hidden>
Message-ID:
<email@hidden>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
"I'm getting so close to having this FTP code running, I can taste
it." (Famous last words)
It would appear that the last remaining functional hurdle for me is
the ability to abort an FTP transfer.
The problem I'm having is that calling
CFReadStreamUnscheduleFromRunLoop() from within the download callback
while the transfer is still active causes an access exception.
I haven't been able to locate anything like CFReadStreamAbort() or
equivalent in the docs.
I do that in my code and have never had any problems.
Are you calling CFReadStreamSetClient(stream,NULL,NULL,NULL) before
unscheduling (and I presume closing and releasing your stream)?
Unscheduling from the run loop doesn't actually cancel anything, the
call that will actually tear down stuff is CFReadStreamClose
Fred
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden