[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-net
Subject:    Re: simple tcp client???
From:       "Brent M. Clements" <bclem () rice ! edu>
Date:       2003-03-30 0:45:08
[Download RAW message or body]

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
> > -
> > To unsubscribe from this list: 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
> #------------------------
> -
> To unsubscribe from this list: 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
>

-
To unsubscribe from this list: 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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic