Yoav Nissim wrote:
I wonder though - if these locks were taken care of, reading and writing
to a single socket could be simultaneous but, would lwIP be full duplex
'on the wire' as you've said?
Well, that depends on your MAC, of course: If you have a DMA-enabled MAC
where you can queue multiple packets, there's no limitation to full
duplex. Even with the current mutual exclusion of read and write, you
will get full duplex to some extent. However, if you try to write more
than can be enqueued in the internal buffers, the write will block out
read until there is more space again, which would be solved when having
different locks for read and write (i.e. no mutual exclusion: read could
be executed while write waits for more buffer space to become available).
As we said, it might take us away from being lightweight. However, if
someone has an easy fix for this, it might be worth to try...
Simon
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users