[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-devel] Include possibility to increase the socket offset
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-devel] Include possibility to increase the socket offset |
Date: |
Wed, 11 Jan 2012 14:46:10 +0100 |
address@hidden wrote:
> Change request for the socket API.
>
> Would it be possible to add an socket offset to the socket API so the
> socket number is increased with the defined number?
The general idea is good, but I don't see why you need to change the lwIP
sources for that: you'd have to re-implement read/write/close/ioctl/fnctl
anyway to call the correct subsystem. Doing that, you can increase/decrease the
file descriptor in a central place in these wrapper functions before/after
calling the correct subsystem.
Simon
--
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!
Jetzt informieren: http://www.gmx.net/de/go/freephone