[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Fwd: UDP-server not working!
From: |
Kieran Mansley |
Subject: |
Re: [lwip-users] Fwd: UDP-server not working! |
Date: |
Mon, 01 Aug 2011 11:39:50 +0100 |
On Mon, 2011-08-01 at 11:35 +0100, Marcos Guerra Medina wrote:
> sorry:
>
> upcb->remote_ip.addr = IP_ADDR_PC_LAB;
> upcb->remote_port = 1338;
> upcb->local_ip.addr = IP_ADDR_LOCAL;
No, you shouldn't be setting internal state of the PCB directly.
udp_bind() will set the local ip and port fields, udp_connect() will set
the remote ip and port fields, but without a udp_connect() you should be
able to receive traffic (I think).
Kieran