Re: socketvar.h
Re: socketvar.h
- Subject: Re: socketvar.h
- From: Eric Long <email@hidden>
- Date: Fri, 03 Jan 2003 14:14:13 -0800
>
sockbuf is a kernel only structure, as should be evidenced by the
>
KERNEL define wrapper. You can't expect to define KERNEL and have
>
things work. Secondly, sockbuf is declared in the scope of the socket
>
structure.
>
>
IOW, if you aren't writing a kernel extension, don't even attempt to
>
use the sockbuf (or socket) structure.
I am writing a kernel extension. The #ifdef KERNEL thing is comes from what
I saw in the source example I am drawing from.
Regarding scope...
This is the part that is a bit confusing to me. I never define a struct
within a struct like this header does.
How should a forward declaration for this be declared?
I am able to work with the declare sockbuf* paramaeters in C implementation
files with no complications. I don't know what the compiler is looking for
when I try to do the same in a C++ file.
Eric Long
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.