Forums - 4004 create socket fail!

2 posts / 0 new
Last post
4004 create socket fail!
1196947785
Join Date: 12 Oct 15
Posts: 1
Posted: Sun, 2016-02-14 23:26

hello everyone!  i have a problem about creating socket , there is a http post client running on the QCA4004  , when the network is not available, open the socket  and the http client  try to connect ,obviously, it connects fail. and then socket close successfully, and i keep the net cutting off ,the program will repeat the things above, create socket and connect fail then close the socket 。 after about 1 hour ,  creating the socket will be fail. once a failure  happens, it can not create a socket successfully  anymore. could anyone answer my question.  

  • Up0
  • Down0
c_rayl
Join Date: 14 Jan 16
Posts: 19
Posted: Mon, 2016-04-25 00:18

The QCA4004 are provided the qcom_socket api to achiave socket connect and go through tcp_client and tcp _server.

If you're establish the tcp socket connection the server will return     strcpy(buf, "hello world!");
 

Regards,

Ray

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.