lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Change to port API: new call to lwip_socket_init() needed


From: Jonathan Larmour
Subject: [lwip-users] Change to port API: new call to lwip_socket_init() needed
Date: Mon, 26 Feb 2007 20:18:38 +0000
User-agent: Thunderbird 1.5.0.9 (X11/20070102)

As per patch #5468 (<https://savannah.nongnu.org/patch/?5468>), to save a little code space, and more importantly avoid a race condition, there must now be an explicit call in an lwIP port's startup code to a function:
 lwip_socket_init();
if you want to use the BSD socket-style API. It can be called anywhere after sys_init() but before any socket calls are made.

The prototype is available with a #include "lwip/sockets.h"

I've updated ports in the contrib module of CVS, but obviously it's more likely to affect people out there with their own ports. Remember to update your port if you are using CVS.

Jifl
--
eCosCentric Ltd  http://www.eCosCentric.com/  The eCos and RedBoot experts
  **  Visit us at ESC Silicon Valley <http://www.embedded.com/esc/sv> **
  **  April 3-5 2007, Booth 1922, San Jose McEnery Convention Center  **
Company legal info, address and number:   http://www.ecoscentric.com/legal
------["The best things in life aren't things."]------      Opinions==mine




reply via email to

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