7 Replies Latest reply on Oct 9, 2014 6:10 PM by userc_2727

    What's the limitation of number of sockets can be created at the same time?

      Test on sdk3.0.1, with FreeRTOS+LwIP.

       

      Below code snip shows wiced_tcp_create_socket fails if i >= 5.

      The fail result is 25 (SOCKET_CREATE_FAIL).

       

      Which means I can only successfully create 5 sockets at the same time. (0 ~ 4).

       

      for (i = 0; i < 10; i ++) {

                  result = wiced_tcp_create_socket(&socket[i], WICED_STA_INTERFACE);

                  if (result != WICED_SUCCESS) {

                      WPRINT_APP_INFO(("wiced_tcp_create_socket fails %u  i=%d\r\n", result , i));

                  }

      }

       

      So any limitation about the number of sockets can be created at the same time?