[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Can you connect a MQTT client directly from a PPPoS sta
From: |
Freddie Chopin |
Subject: |
Re: [lwip-users] Can you connect a MQTT client directly from a PPPoS status callback? |
Date: |
Thu, 16 May 2019 20:56:32 +0200 |
User-agent: |
Evolution 3.32.1 |
On Thu, 2019-05-16 at 19:51 +0200, address@hidden wrote:
> It's probably not safe as you risk calling back into modules that are
> not reentrant. I don't know this for sure, just as a saftey
> measurement...
Yes, this is what I was afraid of.
> Maybe you could use tcpip_trycallback() from that callback?
I assume you are talking about tcpip_try_callback() right? Only thing I
could find about tcpip_trycallback() is this:
tcpip_trycallback() was renamed to tcpip_callbackmsg_trycallback() to avoid
confusion
with tcpip_try_callback()
It seems that the name was (and still is) very confusing (;
Anyway tcpip_try_callback() does indeed look as what I could use for my
purpose, so thanks for info! I'll try that tomorrow, however I'm not
sure how will I be able to deal with an error when posting the callback
(or allocating the message) will not be possible. The other function -
tcpip_callbackmsg_trycallback() - also looks like I could use it, one
possible failure point less.
Regards,
FCh