Re: simple tcp client???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux