lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] error when starting an app that tries to open a socket over


From: Wendel Assis
Subject: [lwip-users] error when starting an app that tries to open a socket over a running lwIP instance
Date: Tue, 13 Jan 2015 18:58:48 -0200

Hi all,

    I´m trying to build a setup like this:

1) c project that is based on the lib project in the contrib distribution to generate the lwip as a library
2) c project that links to the library created in (1) and just adds a network interface, using the tap interface as done in the unix contrib distribution.
3) c project that is based on the chargen example in the contrib distribution.

I´ve compiled all projects. After that, run my (2) project and the lwip gets initialized. Next, run (3) and expect the app to be able to open a socket. However, it fails to open returning null at "netconn_alloc".

If I do (2) and (3) as a single project (starting the chargen example right after adding the netif in the code) everything works fine.

    Please, could someone help me on what am I missing on this setup? I´m running the projects over linux.

Best Regards,
Wendel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]