Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bsd sockets in a kext



When using sockets in a kext, you need to use the in kernel socket
functions. I think creating a socket requires the use of sosocket, I can't
remember the exact details. For using a socket in the kernel, look at the
file bsd/net/ndrv.c, it should contain an example.

-josh

On 3/8/02 3:51 AM, "Stephane ODUL" <email@hidden> wrote:

> Hi,
>
> I9m writing a driver to handle multimedia key for a usb keyboard.
>
> My kext need to send message to a user process daemon.
>
> I9ve tried to setup the communication using the bsd sockets. My daemon
> compile fine but the when I build the kext I have an error saying functions
> like socket() are not declared while <sys/socket.h> is included.
>
> Maybe I9m not using the good solution. Help me I ve been stucked on this for
> 3 days now.
>
> Thanks a lot.
>
> --
> Stephane ODUL
> email@hidden
> http://www.soft.odul.net/
> _______________________________________________
> darwin-development mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/darwin-development
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Bsd sockets in a kext (From: Stephane ODUL <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.