c - socket() function from nacl sdk returns -1 -


i have build chrome app nacl module calls socket() function, function returns -1. have compiled module -lnacl_io linker option. have tried run goolgle chrome --allow-nacl-socket-api=localhost. call function next arguments:

socket(af_inet, sock_stream, ipproto_tcp) 

why function failed?

don't forget call nacl_io_init_ppapi function


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo