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

_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to