[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Recommendations needed for API design
From: |
Marcus Bäckman |
Subject: |
[lwip-users] Recommendations needed for API design |
Date: |
Fri, 19 Feb 2010 15:02:58 +0100 |
Hello,
I am currently porting lwip for our ppc hardware, and have so far succesfully been using the raw TCP API.
The requirements for the application interface is a socket interface without the blocking functionality and I have some questions regarding its design.
The stack will be running in a mulithreaded environment with certain restrictions, for example: only one thread a time will use a certain socket at a time.
I would prefer not to have any dependency towards the operating system, and the approach is to make further restrictions on the application to guarantee safe multithreaded usage.
Here is my thoughts of the general approach:
- Each socket has a dedicated area for buffering incoming pbuf's.
- Transmission data will be queued and handled in a seperate thread which transmits pending data and processes incoming data.
What are your thoughts on this approach? Would it be easier you just abandon it in favor for the current socket/netconn API ?
Is it multithread safe to use pbuf_free() on a pbufs (PBUF_RAW from PBUF_POOL) from one context, and in another context use pbuf_alloc() (PBUF_RAW)?
Regards,
Marcus
- [lwip-users] Recommendations needed for API design,
Marcus Bäckman <=
- Re: [lwip-users] Recommendations needed for API design, Kieran Mansley, 2010/02/19
- [lwip-users] Initialization of global Vars, Christian Steffen, 2010/02/22
- Re: [lwip-users] Initialization of global Vars, address@hidden, 2010/02/22
- Re: [lwip-users] Initialization of global Vars, Christian Steffen, 2010/02/23
- RE: [lwip-users] where is lwippools.h file, Bill Yang, 2010/02/23
- Re: [lwip-users] where is lwippools.h file, address@hidden, 2010/02/23
- RE: [lwip-users] Compile Error related to lwippools.h file, Bill Yang, 2010/02/24
- Re: [lwip-users] Compile Error related to lwippools.h file, address@hidden, 2010/02/25
- RE: [lwip-users] Compile Error related to lwippools.h file, Bill Yang, 2010/02/25
RE: [lwip-users] Recommendations needed for API design, Bill Auerbach, 2010/02/19