title: STM32F107VC Running a FreeRTOS with TCP
body: <p>I need to develop an application on my eval board: STM3210-c (chip: stm32f107vc) which creates threads.
  Each thread creates a TCP client and is able to connect to a different slave.</p>
  
  <p>I thought about using FreeRTOS &amp; lwip (and preferably working with the socket functionality of the lwip).</p>
  
  <p>But I want to use sockets, I don't want to have to manage the packets.
  I've tried to compile the LwIP with support for sockets but I can't get it to compile.</p>
  
  <p>The flags I've set in lwipopts.h are:</p>
  
  <p><code>#define LWIP_TIMEVAL_PRIVATE                            0
   #define LWIP_NETCONN                                     1
   #define LWIP_SOCKET                                      1</code></p>
  
  <p>When I try to compile I get an error that lwip/netbuf.h does not exist.</p>
  
  <ol>
  <li>Is there an example of code how to use freertos &amp; lwip sockets?</li>
  <li><p>Is there a different library which I need to consider?</p>
  
  <ul>
  <li>I am using VisualGDB. </li>
  </ul></li>
  </ol>
  
  <p>Any offers or code sample would be highly appreciated.</p>