Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: HelloWorld ServoInterfaceBoardExample1 4180_Lab4
Diff: if/lwip/lwipNetUdpSocket.cpp
- 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 );