Re: [lwip-users] event callback in lwip sockets

2017-02-18 Thread bernard
Thank Simon, Yes, there are more changes in sockets.c, and the similar event handler should be added in my_callback. I mean, that LWIP_ASSERT can be ignore. Maybe I can provide the modification later, thanks. Best Regards, Bernard Xiong 2017-02-16 4:01 GMT+08:00 goldsi...@gmx.de

Re: [lwip-users] event callback in lwip sockets

2017-02-15 Thread goldsi...@gmx.de
bernard wrote: Hi, Because I need to implement the poll(struct pollfd *fds, nfds_t nfds, int timeout) routine between bsd socket and device fd etc. I have to set the callback to my event callback, then notify upper layer for different kind of fd poll/select. For example: conn->callback =

[lwip-users] event callback in lwip sockets

2017-02-14 Thread bernard
Hi, Because I need to implement the poll(struct pollfd *fds, nfds_t nfds, int timeout) routine between bsd socket and device fd etc. I have to set the callback to my event callback, then notify upper layer for different kind of fd poll/select. For example: conn->callback = my_event_callback;