Xref: utzoo comp.os.os2.programmer:530 comp.protocols.tcp-ip:15324 Path: 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 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."