Re: [lwip-users] Sockopt SND_TIMEO

2010-01-13 Thread goldsi...@gmx.de
Fabian Koch: I am in the position where I would need SOCKET_SO_SNDTIMEO to have Send() at least return after a while when e.g. I unplugged the cable. Now, I understand that sockopt is unimplemented in LwIP. Not sockopt in general, but SO_SNDTIMEO is not implemented, that's right. Could I achie

[lwip-users] Sockopt SND_TIMEO

2010-01-13 Thread Fabian Koch
Hey list, I am in the position where I would need SOCKET_SO_SNDTIMEO to have Send() at least return after a while when e.g. I unplugged the cable. Now, I understand that sockopt is unimplemented in LwIP. Could I achieve a similar behavior using sys_timeout()? Creating a timeout before calling ne

Re: [lwip-users] Problem with CS8900 driver

2010-01-13 Thread goldsi...@gmx.de
Bernhard 'Gustl' Bauer wrote: Hi, I'm using LWIP 1.3.0 with the modified CS8900 driver coming with contrib. First of all, I think the one in CVS might be outdated since it is not maintained any more (which is why it has been moved to the 'old' subdirectory). Please have a look at the drive

Re: [lwip-users] Socket read/write and threads

2010-01-13 Thread Nicolas Pinault
Nicolas Pinault a écrit : Nicolas Pinault a écrit : Yoav Nissim a écrit : Pardon me for barging in... I have encountered the same issue about a week or two ago. Using select() would be the natural choice for performing multiple non-blocking operations. You can either: 1. Use select() in a

[lwip-users] Problem with CS8900 driver

2010-01-13 Thread Bernhard 'Gustl' Bauer
Hi, I'm using LWIP 1.3.0 with the modified CS8900 driver coming with contrib. The transfer from CS8900 to RAM buffer is done by DMA and works fine so far. Then cs8900_input() does a pbuf_alloc() and copies 1 packet from DMA buffer to pbuf. But what if pbuf_alloc() fails? If I drop this packe