TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Donnie Benners
from: Jonathan de Boyne Pollard
date: 1998-10-04 17:02:40
subject: TCP/IP

DB> I want to make sure I'm connected to the internet when my program 
 DB> runs. If not, I want to callup the dialer and connect.

I'm convinced that many programmers don't read the "user" echoes
and newsgroups.  If they did, they wouldn't ask questions such as the one
that you are asking, because they'd have seen the number of complaints from
users who are having problems trying to *stop* their applications from
"automatically" invoking diallers, or from being
"clever" and "detecting" whether the Internet is
accessible or not.  

Don't do this.  It makes users' lives hell.  There's absolutely *no* need
for it in any case, since there is a perfectly good mechanism for doing
this -- that the users can configure *for themselves* in any way that they
like, no less! -- already present in OS/2 Warp: LINKUP.EXE.  Do what the
rest of the TCP/IP applications in OS/2 do.  Assume in your application
that SLIP/PPP is running, and have two sets of desktop objects to invoke
the application.  The first object is for "LAN" users, and just
invokes the application directly.  The second object is for SLIP/PPP users
and invokes the application indirectly via LINKUP, which will handle
invoking the dialler if necessary before starting your application.

 ¯ JdeBP ®

--- FleetStreet 1.19 NR
* Origin: JdeBP's point, using Squish (2:440/4.3)
SEEN-BY: 396/1 632/0 371 633/210 260 267 270 371 635/506 728 639/252 670/218
@PATH: 440/4 255/1 251/25 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.