🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1360

Re: socket issue

#1360
From: Remy Lebeau (TeamB)
Date: Mon, 12 Feb 2007 08:56
23 lines
1690 bytes
"mat" <mat@hotmail.com> wrote in message
news:45d00321@newsgroups.borland.com...

> if i try to ping the pc before connecting will it be a good idea?

No.  Asside from the added overhead of the ping itself, that still
won't tell you whether the server can actually be connected to or not.

> in its onreply even i have
> Memo1->Lines->Add(AnsiString(AReplyStatus.MsRoundTripTime) +" from
> "+AReplyStatus.FromIpAddress);
> i noticed that if i try ping an ip that possible doesnt exist i get
a 1000+
> from 0.0.0.0

The correct thing to do is to first look at the
AReplyStatus.ReplyStatusType member, as that tells you whether the
ping was successful or not.  The rest of the members may or may not be
valid, depending on the type of reply received.


Gambit
Technical Details
Message-ID: <45d02bec$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45cbd7c8$1@newsgroups.borland.com> <45d00321@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,54a50302c070b08c
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <45cbd7c8$1@newsgroups.borland.com> <45d00321@newsgroups.borland.com>
Subject: Re: socket issue
Date: Mon, 12 Feb 2007 00:56:44 -0800
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.83.34.171
Message-ID: <45d02bec$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1171270636 75.83.34.171 (12 Feb 2007 00:57:16 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail