• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CFSocket Read Call Back
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFSocket Read Call Back


  • Subject: Re: CFSocket Read Call Back
  • From: Douglas Davidson <email@hidden>
  • Date: Thu, 29 Jun 2006 16:52:50 -0700


On Jun 29, 2006, at 4:48 PM, Duane Murphy wrote:

Is it normal for a read call back on a socket to be called when there is

no data to be read?


I create CFSocket from a socket and specify a read call back. The socket

transfers some data, but then when there is no data available, the read

call back is still being called. 


I am repeatedly call read on the socket, but it always returns 0 bytes.


Is this normal behavior? I believe in some previous situation that the

read call back would only be called when there was actually data available.



CFSocket provides a read call back when select() indicates that the socket is readable.

Douglas Davidson

 _______________________________________________
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

  • Follow-Ups:
    • Re: CFSocket Read Call Back
      • From: "Duane Murphy" <email@hidden>
References: 
 >CFSocket Read Call Back (From: "Duane Murphy" <email@hidden>)

  • Prev by Date: CFSocket Read Call Back
  • Next by Date: Re: CFSocket Read Call Back
  • Previous by thread: CFSocket Read Call Back
  • Next by thread: Re: CFSocket Read Call Back
  • Index(es):
    • Date
    • Thread