|
From: | Nick van IJzendoorn |
Subject: | [lwip-devel] [patch #7702] Include ability to increase the socket number with defined offset |
Date: | Thu, 12 Jan 2012 10:24:26 +0000 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7 |
URL: <http://savannah.nongnu.org/patch/?7702> Summary: Include ability to increase the socket number with defined offset Project: lwIP - A Lightweight TCP/IP stack Submitted by: dipswitch_ Submitted on: Thu 12 Jan 2012 10:24:25 AM GMT Category: None Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: None _______________________________________________________ Details: Would it be possible to add an socket offset to the socket API so the socket number is increased with the defined number? Something like: LWIP_SOCKET_OFFSET==n: Increases the file descriptor number created by LwIP with n. This can be usefull when there are multiple API's which create file descriptors. When they all start with a different offset and you won't make them overlap you can re implement read/write/close/ioctl/fnctl to send the requested action to the right library. The only problem is that select would need a quite expensive wrapper anyway because you would need to split the fd_set's to the appropriate library's. I provided a patch against v1.4.0. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Thu 12 Jan 2012 10:24:25 AM GMT Name: lwip-socket.patch Size: 2kB By: dipswitch_ <http://savannah.nongnu.org/patch/download.php?file_id=24804> _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/patch/?7702> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |