[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #28945] Simplify the use of tcp_accepted
From: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [bug #28945] Simplify the use of tcp_accepted |
Date: |
Sat, 20 Feb 2010 17:22:22 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2) Gecko/20100115 Firefox/3.6 |
URL:
<http://savannah.nongnu.org/bugs/?28945>
Summary: Simplify the use of tcp_accepted
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: goldsimon
Submitted on: Sa 20 Feb 2010 17:22:21 GMT
Category: None
Severity: 3 - Normal
Item Group: Feature Request
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release:
lwIP version: CVS Head
_______________________________________________________
Details:
Currently, using tcp_accepted() is hard to use: it has to be called with the
listen-pcb as argument. However, since that listen-pcb is not available in the
accept-callback, it has to be set as callback-arg to the listen-pcb when
setting it up.
This could be simplified by giving the struct tcp_pcb a pointer to the
listen-pcb used to create it (which would be NULL for outgoing connections).
tcp_accepted() could then check the state and dereference this pointer if
state != LISTEN.
However, this would mean increasing the pcb by 4 bytes on most platforms
(although it is already quite big).
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?28945>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #28945] Simplify the use of tcp_accepted,
Simon Goldschmidt <=