• 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: Callback from NKE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Callback from NKE


  • Subject: RE: Callback from NKE
  • From: "Carl Smith" <email@hidden>
  • Date: Wed, 23 Feb 2005 14:08:14 -0500
  • Thread-topic: Callback from NKE


After some further research, and I don't know if this is more a Unix question than an Apple question, but what about using socreate, to assign a call back function in the Client with some defined intercepts from the kernel. I know this is done within the kernel, for system events and etc., but can it also be done in the userland?
To eliminate the loop on recv()

Thanks


On Feb 17, 2005, at 8:50, Carl Smith wrote:

> Excuse my igronance, being I am new to both Mac OS X and unix, from
> what you wrote below, then you are saying that my select() or CFSocket
> would be intiated and used in userland? Do you know of any example
> code using this method?

Yes, both select() and the CFSocket stuff are user-mode APIs.

I don't know of any CF* documentation other than what is available at
Apple's developer website (there may be other info out there), but for
select(), there are several books that give a great intro to the use of
select() and other BSD-style low-level APIs.  Notable among them is W.
Richard Stevens's "Unix Network Programming" (v. 1, 2nd ed).  There is
a third edition by a different author, and I'm not familiar with that.
The Stevens website has some details plus a tarball of a bunch of
example code that goes with the book (<http:www.kohala.com>).

Stevens also has a book called "Advanced Programming in the Unix
Environment" that is worth having (plus code on the site).  He was an
excellent expositor.

Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large  *
Institute for General Semantics        |   When LuteFisk is outlawed
                                        |   Only outlaws will have
                                        |       LuteFisk
*--------------------------------------*-------------------------------*

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.853 / Virus Database: 581 - Release Date: 2/1/2005


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.859 / Virus Database: 585 - Release Date: 2/14/2005

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Callback from NKE
      • From: Justin Walker <email@hidden>
  • Prev by Date: Re: ContentHint Issue
  • Next by Date: Re: Callback from NKE
  • Previous by thread: RE: Callback from NKE
  • Next by thread: Re: Callback from NKE
  • Index(es):
    • Date
    • Thread