tasklwIP - A Lightweight TCP/IP stack - Tasks: task #14051, Move select() implementation from...


You are not allowed to post comments on this tracker with your current authentication level.

task #14051: Move select() implementation from sockets to netconn

Submitted by:  Dirk Ziegelmeier <dziegel>
Submitted on:  Tue 21 Jun 2016 07:17:02 PM UTC  
Category:  socket/netconn Should Start On:  Tue 21 Jun 2016 12:00:00 AM UTC
Should be Finished on:  Tue 21 Jun 2016 12:00:00 AM UTC Priority:  5 - Normal
Status:  Cancelled Privacy:  Public
Percent Complete:  0% Assigned to:  None
Open/Closed:  Closed Planned Release:  None
Effort:  0.00

Thu 09 Feb 2017 08:30:06 PM UTC, comment #2: 

By now, I don't think this is worth it. Plus how would we implement this given that users should be able to supply a callback function (we would need that for select).

Why don't we instead add zero-copy or callback functions to our socket API?

Simon Goldschmidt <goldsimon>
Project Administrator
Tue 21 Jun 2016 07:22:13 PM UTC, comment #1: 

Drawback: struct netconn increases in size for all netconns - basically its moving struct lwip_sock into struct netconn.

Dirk Ziegelmeier <dziegel>
Project Administrator
Tue 21 Jun 2016 07:17:02 PM UTC, original submission:  

This way, e.g. TCP netconns with multiple connections could be handled in a worker thread.

May be useful if e.g. a  webserver is only an "additional value" in the product, so it is desirable to run it in a low-prio worker thread.

Same can already be done with sockets, but there is always copying the pbuf payload around involved.

Dirk Ziegelmeier <dziegel>
Project Administrator


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by dziegel (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-02-09 goldsimon StatusNone => Cancelled
        Open/ClosedOpen => Closed

    Back to the top

    Powered by Savane 3.5