I have a large amount of existing BSD socket code that I have ported to NaCl. I am able to build, link and run this code however the NaCl module crashes as soon as the socket code is reached.
I am now using nacl_io, but when I try to call TCP connect function I get an error with errno 38 which means
#define ENOSYS 38 /* Function not implemented */
Why would calling the connect function fail but I am able to successfully resolve host via gethostbyname()?
Note that I am using the example code from nacl_io demo. That code in the demo works fine, but when copied to my own project I get the errors when calling connect().