EthernetNetIf Compatibility.

Dependents:   XBeeWiFi_SPI_example

Fork of NetServicesSource by Donatien Garnier

Revision:
1:abb442332fa8
Parent:
0:632c9925f013
Child:
2:a4f97773c90f
--- a/if/lwip/lwipNetUdpSocket.cpp	Fri Jun 11 16:05:15 2010 +0000
+++ b/if/lwip/lwipNetUdpSocket.cpp	Mon Jun 14 10:33:54 2010 +0000
@@ -35,11 +35,11 @@
   DBG("\r\nNew NetUdpSocket %p\r\n", (void*)this);
   if(!m_pPcb)
     m_pPcb = udp_new();
-  if(m_pPcb)
+ /* if(m_pPcb)
   {
     //Setup callback
    // udp_recv( (udp_pcb*) m_pPcb, LwipNetUdpSocket::sRecvCb, (void*) this );
-  }
+  }*/
 }
 
 LwipNetUdpSocket::~LwipNetUdpSocket()
@@ -52,9 +52,9 @@
   if(!m_pPcb)
     return NETUDPSOCKET_MEM; //NetUdpSocket was not properly initialised, should destroy it & retry
     
-/*  err_t err = udp_bind( (udp_pcb*) m_pPcb, IP_ADDR_ANY, me.getPort()); //IP_ADDR_ANY : Bind the connection to all local addresses
+  err_t err = udp_bind( (udp_pcb*) m_pPcb, IP_ADDR_ANY, me.getPort()); //IP_ADDR_ANY : Bind the connection to all local addresses
   if(err)
-    return NETUDPSOCKET_INUSE;*/
+    return NETUDPSOCKET_INUSE;
     
   //Setup callback
   udp_recv( (udp_pcb*) m_pPcb, LwipNetUdpSocket::sRecvCb, (void*) this );