[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Setting source port number for UDP send
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] Setting source port number for UDP send |
Date: |
Mon, 14 Dec 2009 07:55:32 +0100 |
Marco Jakobs wrote:
> Good evening, Simon!
>
> Thank you for your hint! I changed it the way David mentioned, using
> another netconn_bind before sending the first block over the connection
> ... and it works. I was a little bit confused about the netconn_bind,
> because i use this after first init of the connection to get a listener
> on this port ... not thinking that using it a *second* time will set the
> source port.
That has nothing to do with calling it a second time: the first time you call
it on the listening netconn, the second time on the connection netconn. It
seems to me like you might be missing some basics on sockets. The netconn API
very closely resembles sockets only implementing them in a less
resource-consuming way. You might want to get a good book on socket
programming. Unfortunately, I can't give you a proposal on one...
Simon
--
Preisknaller: GMX DSL Flatrate für nur 16,99 Euro/mtl.!
http://portal.gmx.net/de/go/dsl02
- Re: [lwip-users] Problem with do_writemore() + LWIP for AVR32, (continued)
Re: [lwip-users] Problem with do_writemore() + LWIP for AVR32, Simon Goldschmidt, 2009/12/08
- [lwip-users] Setting source port number for UDP send, Marco Jakobs, 2009/12/10
- Re: [lwip-users] Setting source port number for UDP send, David Empson, 2009/12/10
- Re: [lwip-users] Setting source port number for UDP send, Marco Jakobs, 2009/12/11
- Re: [lwip-users] Setting source port number for UDP send, address@hidden, 2009/12/11
- Re: [lwip-users] Setting source port number for UDP send, Marco Jakobs, 2009/12/13
- Re: [lwip-users] Setting source port number for UDP send,
Simon Goldschmidt <=
- Re: [lwip-users] Setting source port number for UDP send, Marco Jakobs, 2009/12/15
- [lwip-users] Sending a packet to ETH standard gateway with an active PPP connection, Marco Jakobs, 2009/12/15
- Re: [lwip-users] Sending a packet to ETH standard gateway with an active PPP connection, address@hidden, 2009/12/15
- Re: [lwip-users] Sending a packet to ETH standard gateway with an active PPP connection, Marco Jakobs, 2009/12/15
Re: [lwip-users] Problem with do_writemore() + LWIP for AVR32, patelbaroda, 2009/12/09