Re: Networks and wireless etc



What Alun mean is if you have 2 IPs going to the same network ( your example
have different :) ) the one with less metric route for NIC with be chosen
Arkady

"Eugene Gershnik" <gershnik@xxxxxxxxxxx> wrote in message
news:OVg$0N3eFHA.3280@xxxxxxxxxxxxxxxxxxxxxxx
> Alun Jones [MSFT] wrote:
>> "Eugene Gershnik" <gershnik@xxxxxxxxxxx> wrote in message
>> news:etrta3CeFHA.2688@xxxxxxxxxxxxxxxxxxxxxxx
>>> Simon Jefferies wrote:
>>>> Hello,
>>>>
>>>> Please can you tell me if I'm doing this right or not?
>>>>
>>>> I'm trying to get winsock to use the relevant network adapter to
>>>> connect to an IP address. I have enumerated the list of devices and
>>>> have e.g. network card, wireless network and loopback (using the
>>>> GetAdaptersAddresses() WIN32 function). Do I simply use the SOCKADDR
>>>> structure?
>>>
>>> bind() to a sepcific local address before connecting.
>>
>> Binding will not directly affect which NIC is chosen to route outgoing
>> traffic.
>>
>> Changing the information in the routing table will do that. Binding
>> is only an association between an IP network interface and a socket;
>> while that IP network interface is associated with a NIC, the NIC
>> that is chosen to send a packet out on depends on the _destination_
>> of that packet.
>
> So what interface is SYN-ACK going to come from? That is are you saying
> that I can bind to 127.0.0.1 and have packets delivered to me that arrived
> on 192.168.2.1? The way I see it you need *both* to bind correctly and
> have a workable routing table.
>
>
> --
> Eugene
> http://www.gershnik.com
>
>
>
>


.



Relevant Pages

  • Performance and early/late binding
    ... There are some very interesting trade-offs among time of binding, ... for both the initial bind and for each call. ... Calls would have even more overhead because of the communications ... flexibility and control are all balancing acts. ...
    (comp.lang.cobol)
  • Re: bind HTML table to ADO persisted recordset client-side
    ... > code rather than binding would be faster. ... Mark ... >>> Also after skimming the docs, I replaced the sql and connect params ... >> Are you paging the data or causing it to bind all 650 rows before the ...
    (microsoft.public.data.ado)
  • Re: LET improved
    ... Two things impede me in practical Lisp programming - the prefix ... I just wrote such a reader macro to get rid of the latter. ... without adding a reader macro by writing a binding macro that'd be used like ... ;;must use separate bind statements. ...
    (comp.lang.lisp)
  • Re: Performance and early/late binding
    ... for both the initial bind and for each call. ... The binding at compile ... 1980's for calls) adds to the initial bind overhead. ... I agree that for batch processing (which I don't ...
    (comp.lang.cobol)
  • Re: Excel VSTO Listobject control databinding performance problem
    ... You can't manipulate settings on ... the bind process to make it more efficient either. ... > datasource of a listobject, i can't call disconnect, elsewhere the data ... My idea is that listobject binding is wide CPU time ...
    (microsoft.public.dotnet.framework.performance)

Loading