patchlwIP - A Lightweight TCP/IP stack - Patches: patch #9891, netconn: provide optional...

 
 

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

patch #9891: netconn: provide optional upper-layer context field

Submitter:  Martine Lenders <authmillenon>
Submitted:  Thu 20 Feb 2020 05:29:34 PM UTC
   
 
Category:  sockets/netconn Priority:  3 - Low
Status:  Works For Me Privacy:  Public
Assigned to:  goldsimon Open/Closed:  Closed
Planned Release:  None

Thu 20 Feb 2020 08:14:07 PM UTC, comment #2: 

Ah, thanks for the hint. We are still on v2.1.2. Will try that!

Martine Lenders <authmillenon>
Thu 20 Feb 2020 08:08:49 PM UTC, comment #1: 

You don't need to add anything for this to work, just upgrade your sources to git master: since july last year, the 'int socket' member has been changed to a union that either stores an int or a pointer.

For non-socket netconns, just use netconn_set_callback_arg()/netconn_get_callback_arg() to set/get your context.

Closing as "works for me".

Simon Goldschmidt <goldsimon>
Group administrator
Thu 20 Feb 2020 05:29:34 PM UTC, original submission:  

In RIOT we need a way to get the surrounding type of a netconn object from within the netconn callback. This provides such a pointer in an optional way (using the `LWIP_NETCONN_CONTEXT` option macro). This is similar how sockets use the `socket` field, but as a pointer, not numerical.

Martine Lenders <authmillenon>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

 

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 authmillenon (Submitted the item)
  • -email is unavailable- added by authmillenon
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-20 goldsimon StatusNone Works For Me
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2020-02-20 authmillenon Attached File- Added 0001-netconn-provide-optional-upper-layer-context-field.patch, #48456
        Carbon-Copy- Added authmillenon

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code