Read:
http://www.nongnu.org/lwip/2_0_x/index.html
and
http://www.nongnu.org/lwip/2_0_x/pitfalls.html


Check the "Modules" section, the APIs are separated in "Callback-style"
(tcpipthread only) and "Sequential-style" (to be used from other threads)

Ciao
Dirk

On Fri, Sep 22, 2017 at 8:51 AM, Wayne Uroda <w.ur...@gmail.com> wrote:

> My mistake.
>
> Other functions I am calling:
>
> tcpip_init
> netif_add
> netif_set_default
> netif_set_up
> dhcp_start
> dns_setserver
> netbiosns_set_name
> netbiosns_init
> sntp_setservername
> sntp_init
> netconn_*
> netbuf_*
>
> When I said the other functions use the mailbox, I guess I was referring
> to the netconn and netbuf functions, because all those other ones don't
> seem to use the mailbox.
>
> I take it any function which doesn't make use of the mailbox should be
> called on the tcp thread somehow.
> What is the preferred/easiest method of doing that?
> Am I missing some key piece of "lwip for beginners" information which I
> never read in the first place?
>
> Thanks
> - Wayne
>
>
> On Fri, Sep 22, 2017 at 3:43 PM, Simon Goldschmidt <goldsi...@gmx.de>
> wrote:
>
>> Wayne Uroda wrote:
>> >> Which functions are you talking about?
>> > I am calling only sntp_setservername and sntp_init from my code.
>>
>> Ehrm, when I aske which functions you are talking about, I was referring
>> to your "Every other lwip function I've used [..]" to see if you're
>> violating threading anywhere else.
>>
>> SNTP is a callback API application and must not be used from outside
>> tcpip_thread (unless you write your own wrapper functions). Period. Nothing
>> paranoid about that.
>>
>>
>> Simon
>>
>> _______________________________________________
>> lwip-users mailing list
>> lwip-users@nongnu.org
>> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
>
>
> _______________________________________________
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to