lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] NO_SYS and socket


From: address@hidden
Subject: Re: [lwip-users] NO_SYS and socket
Date: Mon, 16 Mar 2020 17:33:02 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0

Am 16.03.2020 um 12:34 schrieb Fw89:
> Hi,
> I'm trying to implement an open62541 opc ua server on my mcu and i need to
> use socket, but when i compile i get this error
>
> #if ((LWIP_SOCKET || LWIP_NETCONN) && (NO_SYS==1))
>   #error "If you want to use Sequential API, you have to define NO_SYS=0 in
> your lwipopts.h"
> #endif
>
> I have to set NO_SYS = 1, because my mcu doesn't has an OS. What can i do?
> Thank you very much

The socket API currently needs threads. This *could* be changed to allow
non-blocking calls, but that's currently not implemented.

The standard socket API does block calling application threads on
specific functions like send (if there's no buffer) or recv (if there's
no data). That doesn't work without an OS, as you would block the whole
stack in absence of multiple execution contexts (a.k.a. threads).

Regards,
Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]