Re: LAN and GPRS
From: oaix (wenxb_at_hotmail.com)
Date: 04/27/04
- Next message: Sam Hobbs: "The WSAMSG structure"
- Previous message: Pawar: "Re: Enumerating Layered Service Providers"
- In reply to: Eugene Gershnik: "Re: LAN and GPRS"
- Next in thread: Eugene Gershnik: "Re: LAN and GPRS"
- Reply: Eugene Gershnik: "Re: LAN and GPRS"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 27 Apr 2004 13:33:51 +0800
Thanks.
all i need to do is set up a TCP/IP connection with my app server. if LAN
is avaiable, i will use LAN, when LAN is unavauable, i'll connect via GPRS.
the problem is , once the GPRS is connected, it override the LAN setting .
so when i plug in the LAN cable, i have to play with the routing table and
make it works but all is by manually, how it could be done by script?
my question is the routing table is the only way to slove it? we can't make
it at socket level, right? as i know you can 't bind to a select IP for a
TCP/IP client.
Thank You very much
"Eugene Gershnik" <gershnik@hotmail.com> wrote in message
news:O7aNhOBLEHA.808@tk2msftngp13.phx.gbl...
> oaix wrote:
> > Hi,
> >
> > I have few questions , hope someone here can help.
> >
> > 1. i have a LAN adapter as well as a GPRS connection in my pc. i
> > want only use GPRS when the LAN is not avaiable, so the question is
> > , how to detect the LAN connection is on or off? (could be
> > different LAN and DHCP server)
> >
> > 2. i need to set up a TCP/IP connection to a remote server, so if
> > in both LAN and GPRS connected case, i want to choose the LAN IP
> > (instead of the GPRS IP)to make the TCP/IP connection, is there any
> > way to do it? the question is can you choose a IP to make the
> > connection?
> >
>
> In general all of the above can be accomplished through playing with
routing
> tables. You haven't told anything about what your applications is (i.e.
does
> it control any of the connections, is it a service or a simple user app,
is
> your GPRS connection a "dial-up" as far as OS is concerned etc.) so it is
> hard to give more detailed advice.
>
> --
> Eugene
>
>
- Next message: Sam Hobbs: "The WSAMSG structure"
- Previous message: Pawar: "Re: Enumerating Layered Service Providers"
- In reply to: Eugene Gershnik: "Re: LAN and GPRS"
- Next in thread: Eugene Gershnik: "Re: LAN and GPRS"
- Reply: Eugene Gershnik: "Re: LAN and GPRS"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|