Re: UDP's sendto() from two IP Addresses to IP Address from small LAN
- From: "Eugene Gershnik" <gershnik@xxxxxxxxxxx>
- Date: Wed, 25 Jan 2006 09:00:19 -0800
Arkady Frenkel wrote:
> That easy to check ( in UDP especially : recvfrom() directly opposite
> to tcp where getpeername() need be called ) but in this case default path
> is
> the answer
I fail to see what default route has to do with OP's issue. He sends two
packets to different networks. The packets are correctly delivered. The
question was IIUC "why does this work" even when the 'from' address of
socket is on different network. The answer is "they are sent from correct
interfaces because routing table says so, regardless of the 'from' address".
The default route (which in OP's case actually uses the interface which
would not work for one of the destinations) has nothing to do with it.
--
Eugene
http://www.gershnik.com
.
- Follow-Ups:
- Re: UDP's sendto() from two IP Addresses to IP Address from small LAN
- From: Arkady Frenkel
- Re: UDP's sendto() from two IP Addresses to IP Address from small LAN
- References:
- UDP's sendto() from two IP Addresses to IP Address from small LAN
- From: Alex Vinokur
- Re: UDP's sendto() from two IP Addresses to IP Address from small LAN
- From: Eugene Gershnik
- Re: UDP's sendto() from two IP Addresses to IP Address from small LAN
- From: Alex Vinokur
- Re: UDP's sendto() from two IP Addresses to IP Address from small LAN
- From: Eugene Gershnik
- Re: UDP's sendto() from two IP Addresses to IP Address from small LAN
- From: Alex Vinokur
- Re: UDP's sendto() from two IP Addresses to IP Address from small LAN
- From: Eugene Gershnik
- Re: UDP's sendto() from two IP Addresses to IP Address from small LAN
- From: Alex Vinokur
- Re: UDP's sendto() from two IP Addresses to IP Address from small LAN
- From: Eugene Gershnik
- Re: UDP's sendto() from two IP Addresses to IP Address from small LAN
- From: Arkady Frenkel
- UDP's sendto() from two IP Addresses to IP Address from small LAN
- Prev by Date: Re: Using visual basic to send a message across a network
- Next by Date: Re: Workaround for Raw sockets in Windows XP SP2?
- Previous by thread: Re: UDP's sendto() from two IP Addresses to IP Address from small LAN
- Next by thread: Re: UDP's sendto() from two IP Addresses to IP Address from small LAN
- Index(es):
Relevant Pages
|