• 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: Returning Distant IP Address from CFReadStream
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Returning Distant IP Address from CFReadStream


  • Subject: Re: Returning Distant IP Address from CFReadStream
  • From: Jeremy Wyld <email@hidden>
  • Date: Tue, 10 Mar 2009 09:03:10 -0700

In either case actually, Open only starts the process. The underlying socket may not get created and connected for quite some time. Open kicks off the process of all that is needed in order to establish the stream. Upon that function's return, that process is not complete. This is true for sync and async.

jeremy

On Mar 10, 2009, at 8:18 AM, Quinn wrote:

At 10:55 -0400 10/3/09, Vincent Lecours wrote:
when I go through the CFWriteStreamCopyProperty (or CFReadStreamCopyProperty) returns a nil because it logs "fdData is nil". I can't understand why fdData is nil. Am I doing something wrong?

Are you running the streams synchronously or asynchronously? If you're running them asynchronously, the underlying socket won't be in place until the stream has opened (that is, your callback gets the kCFStreamEventOpenCompleted event).


S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/ >
Apple Developer Relations, Developer Technical Support, Core OS/ Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@apple.com


This email sent to email@hidden

_______________________________________________ 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: Returning Distant IP Address from CFReadStream
      • From: Vincent Lecours <email@hidden>
References: 
 >Returning Distant IP Address from CFReadStream (From: Vincent Lecours <email@hidden>)
 >Re: Returning Distant IP Address from CFReadStream (From: Quinn <email@hidden>)
 >Re: Returning Distant IP Address from CFReadStream (From: Vincent Lecours <email@hidden>)
 >Re: Returning Distant IP Address from CFReadStream (From: Quinn <email@hidden>)

  • Prev by Date: Re: Returning Distant IP Address from CFReadStream
  • Next by Date: Re: Returning Distant IP Address from CFReadStream
  • Previous by thread: Re: Returning Distant IP Address from CFReadStream
  • Next by thread: Re: Returning Distant IP Address from CFReadStream
  • Index(es):
    • Date
    • Thread