Re: [lwip-users] HELP NEEDED

2011-05-24 Thread bekanosky
On 05/25/2011 04:50 AM, abhimanyu kapur wrote: Hi I am very new to lwIP and need support. I am using a custom OS , and i am required to port lwIP onto my patform. I did see some material online, but i am hoping to get some documentation / instructions on porting lwIP on my OS. I also tried buty

[lwip-users] HELP NEEDED

2011-05-24 Thread abhimanyu kapur
Hi I am very new to lwIP and need support. I am using a custom OS , and i am required to port lwIP onto my patform. I did see some material online, but i am hoping to get some documentation / instructions on porting lwIP on my OS. I also tried buty could not find the sys_arch.c file. Do i have to

Re: [lwip-users] a beginners questions about lwip, sockets and threads

2011-05-24 Thread goldsi...@gmx.de
Kieran Mansley wrote: On Tue, 2011-05-24 at 15:14 +0200, ake.forsl...@nibe.se wrote: 1. Can I use threads? One to receive and one to transmit data and then check if the data arrives correctly? You can, but I would do it all in one thread, and use poll() to determine when each socket needs atten

Re: [lwip-users] Bug in netconn_alloc?

2011-05-24 Thread Simon Goldschmidt
"Walter Saegesser" wrote: > Thanks for the instructions. I completely misinterpreted the use of > sys_mbox_set_invalid / sys_sem_set_invalid. I thought you just wanted to > invalidate a previously valid mbox or sem. > Does 'sys_xxx_free' also have to invalidate the the mbox or sem, i.e. > *mbox =

Re: [lwip-users] a beginners questions about lwip, sockets and threads

2011-05-24 Thread Luca Ottaviano
Hi Åke, On mar, 2011-05-24 at 15:14 +0200, ake.forsl...@nibe.se wrote: > My questions are: > 1. Can I use threads? One to receive and one to transmit data and then > check if the data arrives correctly? Yes, you can. I only have experience with sockets API (which in my opinion is simpler to use

Re: [lwip-users] a beginners questions about lwip, sockets and threads

2011-05-24 Thread Kieran Mansley
On Tue, 2011-05-24 at 15:14 +0200, ake.forsl...@nibe.se wrote: > 1. Can I use threads? One to receive and one to transmit data and > then > check if the data arrives correctly? You can, but I would do it all in one thread, and use poll() to determine when each socket needs attention (either sendi

[lwip-users] a beginners questions about lwip, sockets and threads

2011-05-24 Thread ake . forslund
Hi, I've just started porting lwip to our platform and I have run in to some slight problems and I hope this is the right mailing list for these kind of questions (if it isn't please redirect me to a more suitable place) I've gotten the porting layer in place and the my lwip_init() has stopped

Re: [lwip-users] memory leak in ethernetif_init()

2011-05-24 Thread Simon Goldschmidt
m.duck...@kunbus.de wrote: > in ethernetif_init() of lwIP 1.4.0 in the file ethernetif.c there is > memory allocated for the struct ethernetif and assigned to netif->state. > This data is never used in the lwip stack and not freed in netif_remove(). > I think this malloc and assignment should be

[lwip-users] memory leak in ethernetif_init()

2011-05-24 Thread M . Duckeck
Hi, in ethernetif_init() of lwIP 1.4.0 in the file ethernetif.c there is memory allocated for the struct ethernetif and assigned to netif->state. This data is never used in the lwip stack and not freed in netif_remove(). I think this malloc and assignment should be removed. regards Mathias

Re: [lwip-users] Bug in netconn_alloc?

2011-05-24 Thread Walter Saegesser
Hi Simon > The macro sys_mbox_set_invalid() is (like the name says) supposed > to set a pointer to an mbox to a known state so that we can later > check if that pointer is valid (mbox created) or invalid (mbox not created). > E.g. if you defined sys_mbox_t to "void*", then you would > #define s

Re: [lwip-users] TCP client waiting for answer from server (Kieran Mansley)

2011-05-24 Thread Kieran Mansley
On Tue, 2011-05-24 at 08:07 +0200, Walter Saegesser wrote: > The concept of many people writing the documentation is welcome. But > there should or maybe even must be a supervisor, who approves or > disapproves the information given. Otherwise I fear that people will > sooner or later realize they

Re: [lwip-users] Bug in netconn_alloc?

2011-05-24 Thread Simon Goldschmidt
"Walter Saegesser" wrote: > conn = (struct netconn *)memp_malloc(MEMP_NETCONN); > ... > sys_mbox_set_invalid(&conn->acceptmbox); > > As far as I see, 'acceptmbox' has not been assigned and thus can hold > any value - if you are unlucky enough even a valid handle. The macro sys_mbox_set_inva