patchlwIP - A Lightweight TCP/IP stack - Patches: patch #9450, New sockets function: lwip_poll

 
 

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

patch #9450: New sockets function: lwip_poll

Submitted by:  Joan Lledó <jllledo>
Submitted on:  Thu 07 Sep 2017 04:43:13 PM UTC  
 
Category: sockets/netconnPriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: Simon Goldschmidt <goldsimon>Open/Closed: Closed
Planned Release: 2.1.0

Thu 21 Sep 2017 08:25:50 PM UTC, comment #4:

Some things have moved from sockets.c to sockets_priv.h. I thought git might handle this, but apparently it doesn't...

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Thu 21 Sep 2017 08:21:17 PM UTC, comment #3:

What's the error? I may be creating the patch with the wrong command. Or maybe the sources have changed since I wrote the patch and the lines aren't matching.

Joan Lledó <jllledo>
Thu 21 Sep 2017 08:20:45 PM UTC, comment #2:

I've pushed the patch. Cleaned it up a bit, too. Having LWIP_SOCKET_POLL==2 is just not the lwIP way. I guess we have patch #9350 for that...

What remains is that it seems to me as we could probably share more code between select and poll...

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Thu 21 Sep 2017 06:51:04 PM UTC, comment #1:

Don't know why, but again, this patch didn't apply for me.

I've took the time to port it to current master:

(file #41860)

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Thu 07 Sep 2017 04:43:13 PM UTC, original submission:

Hello,

This patch adds a new poll() function for the Sockets API. The patch has been modified to include the new features added to lwip_select() after the release 2.0.1, for which the patch was originally written.

The patch has been tested and is working fine for the unixsim example in lwip-contrib. But no further tests have been made.

Joan Lledó <jllledo>

 

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goldsimon (Updated the item)
  • -unavailable- added by jllledo (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 21 Sep 2017 08:20:45 PM UTCgoldsimonStatusNone=>Done
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.1.0
    Thu 21 Sep 2017 06:51:04 PM UTCgoldsimonAttached File-=>Added 0001-PATCH-New-sockets-function-lwip_poll.patch, #41860
    Thu 07 Sep 2017 04:43:13 PM UTCjllledoAttached File-=>Added 0001-New-sockets-function-lwip_poll.patch, #41758

    Back to the top


    Powered by Savane 3.1-cleanup1