[lwip-users] Randomized initial local port in tcp_connect()

2017-08-06 Thread gussabina
Hello: I noticed the tcp_connect() function always use the same local (ephemeral) port, rather than choosing a random port from a range of available ports. This causes problem connecting to the same server as they might think it's part of the previous connection if not closed properly. I already

Re: [lwip-users] invalid recvmbox in UDP recv() function

2017-05-11 Thread gussabina
Ok. But TCP sockets works fine...Below is the code I'm using for TCP receive. Actually, in below code I'm using select() to wait for receive data...Now I'm confused...Should I use same approach for UDP? Thanks; Gus /int SocketRead(void *context, byte* buf, int buf_len, int timeout_ms) {

Re: [lwip-users] invalid recvmbox in UDP recv() function

2017-05-11 Thread gussabina
Thanks, Simon. I will update and also try to debug it... Is the recvmbox supposed to be created by bind() function? According to the error message, this is not valid/existing when checked by the the recv() function.. Thanks Gus -- View this message in context:

Re: [lwip-users] invalid recvmbox in UDP recv() function

2017-05-11 Thread gussabina
Thank you, Simon. Where can I download v .2? Gus -- View this message in context: http://lwip.100.n7.nabble.com/invalid-recvmbox-in-UDP-recv-function-tp29602p29618.html Sent from the lwip-users mailing list archive at Nabble.com. ___ lwip-users

[lwip-users] invalid recvmbox in UDP recv() function

2017-05-10 Thread gussabina
Hello: I'm using lwIP with FreeRTOS and I need to receive data via UDP. I'm testing the following code which goes through until recv() function where it stucks in the following line; LWIP_ERROR("netconn_accept: invalid recvmbox", sys_mbox_valid(>recvmbox), return ERR_CONN;); inside