Re: sending file using CFSocket
Re: sending file using CFSocket
- Subject: Re: sending file using CFSocket
- From: Jens Alfke <email@hidden>
- Date: Mon, 9 Jun 2008 07:43:53 -0700
On 9 Jun '08, at 7:34 AM, Jens Alfke wrote:
On 9 Jun '08, at 3:27 AM, sunil prajapati wrote:
Now, that I need to upload a lot of data, a whole file, the simple
approach probably will not work so well. If I tell CFSocket to send
some smaller amount of data, I need to know when CFSocket is done
uploading (or even just how much it has sent), so I can replenish
the buffer. If some API exists somewhere to help with this, I dont'
know where to find it.
CFStream. (Which is bridged to NSStream, if you're programming in
Objective-C.)
Oh, and FYI, I have some generic TCP client/server code in my
"MYNetwork" project. It's in Objective-C using NSStream, but there are
corresponding calls in the CFStream API.
http://mooseyard.com/hg/hgwebdir.cgi/MYNetwork/file/tip/TCP/
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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