Hi,
In the emulator this works fine (status == 0).Code:CAPABILITY NetworkServices SYSTEMINCLUDE \epoc32\include\stdapis // open C LIBRARY libc.lib // open C int fd, status; fd = socket(AF_INET, SOCK_DGRAM, 0); // Works OK int reuse = 1; int size = sizeof(reuse); status = setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char*)&reuse, size);
But when I do this in the device the setsockopt fails (status ==-1) and the errno is 13 permission denied!
I have tried with more capabilities but no help there. Epocwind.out doesn't show any platsec warnings either. What am I missing?
Thanks!



