See build/platforms/android-*/arch-arm/usr/include/sys/socket.h
Dmitry Moskalchuk
06.07.2010 13:17, Omer Gilad пишет:
Tim
__________ Information from ESET NOD32 Antivirus, version of virus signature database 5256 (20100706) __________
The message was checked by ESET NOD32 Antivirus.
$NDK/docs/STABLE-APIS.TXT isn't searchable, but it tells you exactly what you can use and what you can't: You get all of the standard C library, math, and a few select tidbits of C++. Because sockets isn't part of the C lib or otherwise mentioned in the stable-apis, I'd be hesitant to use it.
Tim,
$NDK/docs/STABLE-APIS.TXT isn't searchable, but it tells you exactly
what you can use and what you can't: You get all of the standard C
library, math, and a few select tidbits of C++.
Because sockets isn't part of the C lib or otherwise mentioned in the
stable-apis, I'd be hesitant to use it.
On Jul 6, 12:26 pm, Tim Mensch <tim.men...@gmail.com> wrote:
> Dmitry Moskalchuk wrote:
> > BSD sockets
>
> > See build/platforms/android-*/arch-arm/usr/include/sys/socket.h
>
> Is there a set of man pages or other searchable documentation that
> includes only exactly what is available on Android? Or is the best
> approach to just grep for commands in the include tree and look at
> standard Linux man pages when you find a command?
>
> Tim
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature database 5256 (20100706) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
I can confirm that sockets work flawlessly for quite some NDK versions
now. Also if you are familiar with socket polling the NDK supports the
SELECT method in older ndks and the linux standard EPOLL system in the
r3 and r4 releases. Documentation on sockets and select and epoll you
can find in online man pages if you don't have a linux installed:
http://linux.die.net/man/7/socket - socket man pages
http://linux.die.net/man/2/select - select man pages
http://linux.die.net/man/4/epoll - epoll man pages
I am not positive epoll is part of the stable apis but I have been
using it for quite some time and never had issues, so unless in a
future version they suddenly decide to remove it, it should be safe.
Andrei