delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/30/15:25:20

From: "Chris A. Triebel" <cat AT sun4 DOT iol DOT unh DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Checking network connection.
Date: Fri, 30 May 1997 08:08:21 -0400
Organization: University of New Hampshire - Durham, NH
Message-ID: <Pine.SUN.3.91.970530080449.9107A-100000@sun4.iol.unh.edu>
References: <338B1185 DOT 2D0C AT post DOT comstar DOT ru> <5mlt09$3sk AT freenet-news DOT carleton DOT ca>
NNTP-Posting-Host: sun4.iol.unh.edu
Mime-Version: 1.0
In-Reply-To: <5mlt09$3sk@freenet-news.carleton.ca>
Lines: 36
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I don't know much about networking on the PC, but do you have ICMP 
support on the destination machine?  You could use ping, even if you 
write your own variation of it.  In the latter case you could embed the 
checksum as Paul suggested, or simply just verify that the frame you get 
back is the proper response to what comes back.

cat  

On 30 May 1997, Paul Derbyshire wrote:

> Date: 30 MAY 1997 06:44:25 GMT 
> From: Paul Derbyshire <ao950 AT FreeNet DOT Carleton DOT CA>
> Newgroups: comp.os.msdos.djgpp
> Subject: Re: Checking network connection. 
> 
> 
> Dim Zegebart (zager AT post DOT comstar DOT ru) writes:
> > Hi,
> > I'm creating comm-monitor programm wich had to
> > periodically copy log files to other PC over
> > network. I'm using ms-dos-client for working groups.
> > Sometimes connection may be invalid, so I can't make
> > a remote copy. How can I validate connection prior to
> > perform actual writing ?
> 
> I dunno. Write a cheksum and read it back and see if it comes back the
> same number? :)
> 
> --
>     .*.  Where feelings are concerned, answers are rarely simple [GeneDeWeese]
>  -()  <  When I go to the theater, I always go straight to the "bag and mix"
>     `*'  bulk candy section...because variety is the spice of life... [me]
> Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh
> 
> 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019