Hi All,
Would you please check what could caused socket error for following code ?
=====
sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
if (sockfd == -1) {
Log_info1("Error: socket not created. err=%d", errno);
goto shutdown;
}
=====
log is as follows
=====
#000001 [ 0.000 ] INFO: (../main.c:163) Starting main t=1477615038.
#000002 [ 0.000 ] INFO: (../main.c:191) Starting the BIOS.
#000003 [ 0.002 ] INFO: (../MainTask.c:178) create Main Task t=1477615038
#000004 [ 0.003 ] INFO: (../NetworkTask.c:449) create Network Task IP addr=0xe00a8c0 t=1477615038
#000005 [ 0.003 ] INFO: (../DebugTask.c:359) Debug Task start t=1477615038.
#000006 [ 1.003 ] INFO: (../socket_utils.c:137) Error: socket not created. err=-1
=====
What does it mean errno = -1 ?
My development platform is ek-tm4c1294xl, and NDK version is 2.16.01.14
Thanks in advance.
Best Regards,
Hae Ryong
