lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] netconn_connect hangs


From: Danil Kaykov
Subject: [lwip-users] netconn_connect hangs
Date: Fri, 10 Jun 2016 06:16:01 +0300


Hi all.
I'm using stm32 with FreeRTOS and trying to create tcp client.
The problem is that the netconn_connect hangs.

static void tcpecho_thread(void *arg)
{
  err_t err;
  struct pbuf *pbuf;
   
  LWIP_UNUSED_ARG(arg);

  /* Create a new connection identifier. */
  conn = netconn_new(NETCONN_TCP);
 
  if (conn!=NULL)
  {  
    /* Bind connection */
    err = netconn_bind(conn, &local_addr, 0);
    
    if (err == ERR_OK)
    {
      err = netconn_connect(conn, &remote_addr, 8080);
     // at this point it seems the program hangs forever.
    ..........

Thanks advanced.

Best regards,
Danil Kaykov
address@hidden
reply via email to

[Prev in Thread] Current Thread [Next in Thread]