[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Re: Issue with udp_input() and source ports
From: |
Brian Lam |
Subject: |
[lwip-users] Re: Issue with udp_input() and source ports |
Date: |
Mon, 10 Aug 2009 13:15:13 -0700 |
User-agent: |
Thunderbird 2.0.0.22 (Windows/20090605) |
//
> /Brian Lam <address@hidden> writes:/
>
> >/ My current workaround is to create one unconnected pcb just for/
> >/ receiving on all ports and another connected one for sending./
>
> /Hi Brian,/
>
> /As Simon says, you should normally use sendto() instead of connect()/
> /when sending UDP. Calling connect() on a UDP socket means that you can/
> /only communicate with the connected host, even though UDP is/
> /connectionless. This can make sense when talking to a known DNS server/
> /for instance./
>
> //jakob/
Oh, I see now. udp_sendto() isn't on the raw API wiki so I didn't know it
existed. Thanks for all your help.
Brian
- [lwip-users] Re: Issue with udp_input() and source ports,
Brian Lam <=