From: "Chris A. Triebel" 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: 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 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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 > 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 > >