Re: Programming for two separate Ethernet interfaces
- From: "Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
- Date: Thu, 16 Mar 2006 14:58:40 -0700
To answer your questions, yes, you can enumerate adapters (GetAdaptersInfo).
You can also bind a socket, whether incoming or outgoing, to a given IP
address. You do that just like you would for a server TCP program, except
instead of INADDR_ANY, you'd pick the specific IP you want to be associated
with.
Paul T.
"Galgalat Sacharin" <Galgalat Sacharin@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:F2A2A187-8DAC-4D21-A495-B3FD743616C1@xxxxxxxxxxxxxxxx
I have an application where I access embedded measurement devices from a
CE-based controller using UDP/IP. No problems as long as I only have one
Ethernet interface in my CE machine. However, I now face a situation where
the measurement devices need to be grouped into two separate groups (I use
broadcasts, and it's not desirable that all units should be affected
simultaneously). Unfortunately the measurement devices are hardcoded to
use a
certain port number, and I don't have access to their firmware to modify
that
behavior. Otherwise I could just have used different port numbers to
communicate with different groups.
Now it seems my only option is to use two separate physical networks, but
I
don't know how to program that in my software. Can you enumerate the
available physical interfaces? When and how do you indicate which
interface
you wish to communicate over? I'd assume when you set up a socket or bind
to
it, but I can find no specific information about that in the API
documentation...
Any help would be appreciated.
.
- Prev by Date: Re: Windows ce; ASP; Server-side JavaScript
- Next by Date: I can't find d3d8.lib in PocketPC2003 SDK
- Previous by thread: DNS problem on Windows Mobile 5
- Next by thread: I can't find d3d8.lib in PocketPC2003 SDK
- Index(es):
Relevant Pages
|