Re: sending file using CFSocket
Re: sending file using CFSocket
- Subject: Re: sending file using CFSocket
- From: "sunil prajapati" <email@hidden>
- Date: Mon, 9 Jun 2008 20:13:03 +0530
I am not using Obj-C.
I am using CoreServices type of project in X-Code.
When I use CFSocketSendData api to send the data to my client it does not return what amount of byte it sent to client like "send" api return the number of byte it sent.
Is there any way to get the number of byte sent by the CFSocketSendData in return?
Thanks,
Sunil.
On Mon, Jun 9, 2008 at 8:04 PM, Jens Alfke <
email@hidden> 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.)
—Jens
--
Thanks & Regards,
Sunil Prajapati
Software Developer in Macintosh
_______________________________________________
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