🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2469

How do I detect an active TCP/IP (IBM) under OS/2?

#2469
From: Joe Herman
Date: Tue, 19 Mar 1991 22:05
19 lines
1206 bytes
Hello, I have a program running under OS/2 that would like to take advantage
of TCP/IP if it's installed on the machine.  Unfortunatly, I can not think
of a good way for the program to detect the presense of TCP/IP.

At first, I thought this could be done by checking the return code
from the socket() (or sock_init()) call.  However, if inet is not
functioning the call to socket() causes the program to exit.  Since
the program can still function without TCP/IP, this is not a desired
behavior.

Does anyone know of a method to detect the presense of TCP/IP under OS/2?

			Thanks,
			Joe Herman
			U. of Maryland

dzoey@terminus.umd.edu
-- 
"Everything is wonderful until you know something about it."
Technical Details
Message-ID: <8281@umd5.umd.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!emory!gatech!purdue!haven!umd5!terminus.umd.edu!dzoey

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!emory!gatech!purdue!haven!umd5!terminus.umd.edu!dzoey
From: dzoey@terminus.umd.edu (Joe Herman)
Newsgroups: comp.os.os2.programmer,comp.protocols.tcp-ip
Subject: How do I detect an active TCP/IP (IBM) under OS/2?
Message-ID: <8281@umd5.umd.edu>
Date: 19 Mar 91 22:05:42 GMT
Sender: news@umd5.umd.edu
Organization: University of Maryland DOSIP-CSC
Lines: 19