|
From: | Noam Weissman |
Subject: | Re: [lwip-users] netconn_connect hangs |
Date: | Fri, 10 Jun 2016 08:04:44 +0000 |
Hi,
I never used netconn so I just thinking out loud you use the same conn for listening
and to connect ?... can you it ?
here is an example that may help.
BR, Noam. From: lwip-users <lwip-users-bounces+address@hidden> on behalf of Danil Kaykov <address@hidden>
Sent: Friday, June 10, 2016 6:16 AM To: address@hidden Subject: [lwip-users] netconn_connect hangs 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 |
[Prev in Thread] | Current Thread | [Next in Thread] |