🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer.misc
Article #162

Re: How to detect TCP/IP or Peer net running in C?

#162
From: Paul Hethmon
Date: Fri, 17 May 1996 00:00
23 lines
1604 bytes
In message <4ndikt$dfv@cpcug.org> - kbennett@cpcug.org (Keith Bennett)15 May
1996 17:34:21 -0400 writes:
:>
:>I'm writing a simple program that reports certain system information.  I'd
:>like to be able to report whether or not TCP/IP and Peer are enabled.  Is
:>there an easy way to do that?  Thanks for any help.

For tcp/ip, sock_init() will tell you whether the drivers
are loaded and working. You could do a gethostbyname()
call on something like www.ibm.com to see if there is
connectivity.


Paul Hethmon
phethmon@utk.edu
------------------------------------------------------------
Computerman -- Agricultural Policy Analysis Center
------------------------------------------------------------
NeoLogic FTP & Mail Servers
------------------------------------------------------------
Knoxville Warp Home Page: http://apacweb.ag.utk.edu/os2
------------------------------------------------------------
Technical Details
Message-ID: <4ni5al$mpo@gaia.ns.utk.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <4ndikt$dfv@cpcug.org>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11307a,31965171a69862e3
X-Google-Attributes: gid11307a,public
X-Google-Thread: 10cd94,31965171a69862e3
X-Google-Attributes: gid10cd94,public
X-Google-Thread: 106983,31965171a69862e3
X-Google-Attributes: gid106983,public
From: phethmon@utk.edu (Paul Hethmon)
Subject: Re: How to detect TCP/IP or Peer net running in C?
Date: 1996/05/17
Message-ID: <4ni5al$mpo@gaia.ns.utk.edu>
X-Deja-AN: 155332510
references: <4ndikt$dfv@cpcug.org>
organization: Agricultural Policy Analysis Center
reply-to: phethmon@utk.edu
newsgroups: comp.os.os2.programmer.misc,bit.listserv.os2-l,comp.os.os2.networking.tcp-ip