site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Thread-index: AcUVE2Y2ypk2dfZiQwSHqBhFiWqOlQExwYRg 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/csmith%40fortresstech.c... This email sent to csmith@fortresstech.com --- 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Carl Smith