lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] How to wake up the tcpip_thread?


From: Timmy Brolin
Subject: Re: [lwip-users] How to wake up the tcpip_thread?
Date: Wed, 18 Aug 2010 19:20:08 +0200
User-agent: Thunderbird 2.0.0.24 (Windows/20100228)


Oliver Hitz wrote:
> Hi all,
>
> I'm trying to use the raw api to create a telnet service in a
> multithreaded environment. I do already have a serial console
> functionality and would like to provide the same service over a telnet
> interface. That console service is basically a thread that receives
> command lines and writes output to some buffer.
>   
It is not allowed to receive data using another thread... The command
lines must be received using the tcpip thread.
> Once the output is written or the buffer is full, I would like to send
> that data. Since it is not allowed to call any of the core tcp commands
> from outside tcpip_thread, how can I safely wake it up in order to call
> any of my callback functions (tcp_poll would do fine)? Any ideas?
>   
If you receive and process the command lines in the tcipip thread, then
you can send the responses immediately using that thread as well.

Regards,
Timmy Brolin



reply via email to

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