Mail Archives: djgpp/1997/05/30/15:25:20
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 -