Hi Robin,
Sorry for my behaviour, it assumed that mails are fade away when another
one is sent.

- I flash the above code to my ESP32 and from a packet sender program i
send messages to port 12345 using tcp. I use the official code in RIOT docs
. [1]
The edit the original code it was like that;
#define SOCK_QUEUE_LEN  (1U)
sock_tcp_t sock_queue[ SOCK_QUEUE_LEN ];

Respect to above definition i got compile error. Then i edit it to
sock_tcp_t sock_queue[ SOCK_QUEUE_LEN ];   => sock_tcp_t sock_queue;
Then it complied and worked.  Even if above compliation is succeed, i
predicted that the information you give me about message size only one
message would be received.

I expected that when i send tcp messages each 2 seconds, my server receives
these messages. However only first one is received and printed the other's
cannot be received and "Error accepting new sock" is occured.
I tried to tune that parameter like sock_tcp_t sock_queue[ 10 ];  but it
gives compliation error. Even if it compiles, i think that it will receive
10 messages then Error accepting new sock will be occured. As result, using
only the
definiation  sock_tcp_t sock_queue; can i receive continious tcp messages ?
How? Is there a way to reset that queue? or is there another problem in the
library?

Thanks.



[1] https://riot-os.org/api/group__net__sock__tcp.html

Robin <[email protected]>, 4 Ağu 2019 Paz, 19:24 tarihinde şunu yazdı:

> Hi Burak,
>
> > Am 04.08.2019 um 16:34 schrieb Burak Karaduman <
> [email protected]>:
> >
> > bump up. :)
>
> First of all, it is considered rude on most mailing list / forums to bump
> your own thread. Especially in between very short timeframes.
>
> Anyway, a few more details would be great. What have you already tried and
> what is the error returned by sock_tcp_accept? What is your test case and
> what is the expected/observed behavior?
>
> From a quick glance i can see that the size of your TCP queue array is 1.
> have you tried to tune this parameter ?
>
> Regards,
> Robin
> _______________________________________________
> users mailing list
> [email protected]
> https://lists.riot-os.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[email protected]
https://lists.riot-os.org/mailman/listinfo/users

Reply via email to