Actually what I needed was only 10 lines of code that I figured out myself. Thanks for everyone who gave me suggestions for applications to use. I only needed to check if a port was open and listening. Take Care, On Sat, 29 Mar 2003, Eric wrote: > Why not very simple? I think he just wants to check if a port is open. > Obviously checking if a server is *working* requires very software specific > code, but checking to see if a port is open shouldnt be much more than a > hundred lines of code. Am i right? > > On Friday 28 March 2003 10:13 am, Matti Aarnio wrote: > > On Fri, Mar 28, 2003 at 09:58:23AM -0600, Brent Clements wrote: > > > Does anyone have an example of a simple tcp client(in c) that checks to > > > see if a service is up and running and if not report an error? > > > > In generic terms that is not a SIMPLE thing. > > > > If you want to be fairly sure that for example SMTP service works, > > you do need to probe the server by sending a test message to it. > > > > From a web-server you need to retrieve a web-page to see that > > it works. > > > > > Thanks, > > > Brent > > > > /Matti Aarnio > > - > > : send the line "unsubscribe linux-net" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > -- > #------------------------ > #Eric Bambach > #Eric@CISU.net > #------------------------ > - > : send the line "unsubscribe linux-net" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html