sockets - recv() function returns -1 -
this (-1) not on fail return code list.
things going on this, on wp8.1 sl project,
i'm calling set of socket functions on native dll.
- wsastartup() succeeed,
- gethostbyname() succeed,
- create socket , connect() succeed,
- send() succeed,
but recv() failed, , returns -1
all functions works on emulator, recv() returns -1 on device.
did of have idea why? :-p
ps: there's no problem when called in lib on wp8.1 wrt. later need use wp8.1 sl, build dll. :-p
ok, fixed it.
because didn't setup wifi on phone.
Comments
Post a Comment