I have build chrome app with nacl module which calls socket()
function, but the function returns -1. I have compiled the module with -lnacl_io linker option. Also I have tried to run Goolgle Chrome with --allow-nacl-socket-api=localhost
. I call this function with the next arguments:
socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)
Why is this function failed?
Don't forget to call nacl_io_init_ppapi function