🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer.misc
2 messages
2 total messages Started by Keith Bennett Wed, 15 May 1996 00:00
How to detect TCP/IP or Peer net running in C?
#157
Author: Keith Bennett
Date: Wed, 15 May 1996 00:00
12 lines
1147 bytes
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.

- Keith

-- 
--------------------------------------------------------------------------
Keith Bennett                             Bennett Business Solutions, Inc.
Silver Spring, MD USA                     OS/2 & DOS Software Development
kbennett@cpcug.org                        (301) 871-7696
Re: How to detect TCP/IP or Peer net running in C?
#162
Author: 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
------------------------------------------------------------
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads