How to bind/unbind TCP/IP with different Network adapters?

  • Thread starter Thread starter Cips
  • Start date Start date
C

Cips

Hi

I have 2 network adapters in my system and i have an array of messages
in my software component. According to the settings in the messages my
component need to send messages to either of the 2 available network
adapters.

How i can do it dynamically from user mode? or i need to write some
kernal mode switching component?

Can we dynamically bind/unbind different network adapters with TCP/IP
stack?

Can we configure network adapter from Sockets level?

Please gime some lights in this areas
Thanks in adv...

Cips
 
Cips said:
Hi

I have 2 network adapters in my system and i have an array of messages
in my software component. According to the settings in the messages my
component need to send messages to either of the 2 available network
adapters.

Assuming you mean plain UDP packets, not multicast, and both NICS are on
different subnets, you simply need to bind a socket to each address. If not,
then please provide more details.
 
Hi Phil

Thanx for your prompt ansswer..
Actually my NICs are Virtual network Drivers.. and below this virtual
driver, i am using my own different wireless or wireline transport
machanisms. So i cant differentiate it through IP addresses..

I want to switch different Network Interfaces below TCP/IP stack, can
i do it using any Windows APIs?

Cips
 
Thanks Stephan..

Let me try with this stuff.. BTW can we use 'SetIfEntry' API for the same?
i think it will be the best solution.. right?

Cips
 
Back
Top