PC Review


Reply
Thread Tools Rating: Thread Rating: 2 votes, 3.00 average.

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

 
 
Cips
Guest
Posts: n/a
 
      9th Apr 2004
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
 
Reply With Quote
 
 
 
 
Phil Frisbie, Jr.
Guest
Posts: n/a
 
      9th Apr 2004
Cips wrote:

> 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.

> 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


--
Phil Frisbie, Jr.
Hawk Software
http://www.hawksoft.com

 
Reply With Quote
 
Cips
Guest
Posts: n/a
 
      12th Apr 2004
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


"Phil Frisbie, Jr." <(E-Mail Removed)> wrote in message news:<j9Bdc.4756$(E-Mail Removed)>...
> Cips wrote:
>
> > 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.
>
> > 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

 
Reply With Quote
 
Stephan Wolf
Guest
Posts: n/a
 
      13th Apr 2004
On 8 Apr 2004 23:18:36 -0700, (E-Mail Removed) (Cips) wrote:

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


See e.g. the INetCfgComponentBindings interface:


http://msdn.microsoft.com/library/en...ntfrf_5sz6.asp

But I would not actually recommend this solution for your approach.

Stephan
 
Reply With Quote
 
Cips
Guest
Posts: n/a
 
      14th Apr 2004
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

Stephan Wolf <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> On 8 Apr 2004 23:18:36 -0700, (E-Mail Removed) (Cips) wrote:
>
> >Can we dynamically bind/unbind different network adapters with TCP/IP
> >stack?

>
> See e.g. the INetCfgComponentBindings interface:
>
>
> http://msdn.microsoft.com/library/en...ntfrf_5sz6.asp
>
> But I would not actually recommend this solution for your approach.
>
> Stephan

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cant bind applications to network adapters/interfaces bulk88@hotmail.com Windows XP Networking 1 20th Apr 2007 07:26 AM
Unbind VPN client from network adapter =?Utf-8?B?amltbW9ycmlzb24=?= Windows XP Networking 0 22nd Feb 2006 09:35 AM
How to unbind large qty of docs using UNBIND? =?Utf-8?B?Um9ieW4gQmVja21hbg==?= Microsoft Word Document Management 0 1st Nov 2005 08:16 PM
Re: Bind and Unbind a subform Kelvin Lu Microsoft Access Form Coding 0 24th Sep 2003 05:32 PM
DHCP unable to bind multi-homed adapters Joe Microsoft Windows 2000 1 15th Sep 2003 07:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:50 AM.