Xref: utzoo comp.os.os2.programmer:555 comp.protocols.tcp-ip:15417 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!uunet!bywater!arnor!news From: oleg@arnor.UUCP Newsgroups: comp.os.os2.programmer,comp.protocols.tcp-ip Subject: Re: How do I detect an active TCP/IP (IBM) under OS/2? Message-ID: <1991Mar26.145016.12118@arnor.uucp> Date: 26 Mar 91 14:50:16 GMT Article-I.D.: arnor.1991Mar26.145016.12118 Sender: news@arnor.uucp (NNTP News Poster) Organization: IBM T.J. Watson Research Center Lines: 10 In article <8281@umd5.umd.edu> dzoey@terminus.umd.edu (Joe Herman) writes: >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. INET.EXE allocates a shared segment \SHAREMEM\MAILBOX. You can check if the segment is allocated before making the first socket call. Oleg Vishnepolsky