• 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
Arguments for callback function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Arguments for callback function


  • Subject: Arguments for callback function
  • From: Liwei <email@hidden>
  • Date: Sat, 2 Aug 2008 15:33:21 +0800

A quick question, I noticed that in the example code given for
CFNetwork specifically:
    void myWriteCallBack(CFWriteStreamRef stream, CFStreamEventType
event, void *myPtr)

There is a third argument myPtr. I wonder if this is used to pass
information about the stream to the callback function. If this is so,
how can I use it to pass a structure containing statistics about the
stream? Currently I'm declaring the structure global to be able to
access the information.

Thanks!
 _______________________________________________
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: Arguments for callback function
      • From: Eli Bach <email@hidden>
  • Prev by Date: Re: Sockets and Network Disconnect?
  • Next by Date: Re: Arguments for callback function
  • Previous by thread: Re: Sockets and Network Disconnect?
  • Next by thread: Re: Arguments for callback function
  • Index(es):
    • Date
    • Thread