Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General 2 / October 2004



Tip: Looking for answers? Try searching our database.

custom message on ping

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stanley Baxter - 30 Oct 2004 11:54 GMT
hi all

is it possible to reply to a ping request
but using my project to send the reply ?

many thanks
AustinMN - 30 Oct 2004 14:08 GMT
The whole idea with a Ping is to go round-trip using the absolute minimum
necessary to do so.  As soon as you involve VB (or even Windows, for that
matter) you step outside the purpose of a ping to begin with.

Austin
> hi all
>
> is it possible to reply to a ping request
> but using my project to send the reply ?
>
> many thanks
Stanley Baxter - 30 Oct 2004 16:20 GMT
dont you Honestly, think i know that ?
why on earth am i posting a question about this topic
if i haven't already seen it done before with excellant results.

it's an incredibly useful method of doing things which
would help us no-end.

> The whole idea with a Ping is to go round-trip using the absolute minimum
> necessary to do so.  As soon as you involve VB (or even Windows, for that
[quoted text clipped - 7 lines]
> >
> > many thanks
AustinMN - 31 Oct 2004 00:33 GMT
I know just enough about it to know that it's _extremely_ doubtful that you
have ever seen it done with VB.

Austin

> dont you Honestly, think i know that ?
> why on earth am i posting a question about this topic
[quoted text clipped - 14 lines]
>> >
>> > many thanks
Steve Gerrard - 30 Oct 2004 19:28 GMT
> hi all
>
> is it possible to reply to a ping request
> but using my project to send the reply ?
>
> many thanks

Have a read on Ping, which is part of the TCP/IP
specification:

http://www.freesoft.org/CIE/Topics/53.htm

You would have to write a replacement for the TCP/IP
protocol driver bound to your network card driver, in which
you modified the code that handles ICMP messages, which
would probably make your implementation out of spec with RFC
792.

It is very unlikely you could do such a thing in VB6, so the
short answer is no.
Stanley Baxter - 31 Oct 2004 11:35 GMT
i just thought maybe something like
winsock listening for the ping could
send a reply, but obviously it's not that
easy to do.

thanks for the advice

> > hi all
> >
[quoted text clipped - 16 lines]
> It is very unlikely you could do such a thing in VB6, so the
> short answer is no.
Steve Gerrard - 31 Oct 2004 18:29 GMT
| i just thought maybe something like
| winsock listening for the ping could
[quoted text clipped - 5 lines]
| >
| > http://www.freesoft.org/CIE/Topics/53.htm

At first it seemed like a possibility to me too.

I think the relevant line, from the ICMP link at the link above, is
"ICMP messages, delivered in IP packets, are used for out-of-band
messages related to network operation or mis-operation."

Regular data is sent in TCP or UDP packets, and it is these that a
winsock control will see; ICMP messages are not TCP packets, and are not
seen by a socket. They are intercepted at the TCP/IP driver level, and
are not forwarded "up the chain", but instead are responded to directly
by the driver.
Stanley Baxter - 31 Oct 2004 20:05 GMT
ok that makes good sense to me.

many thanks for your help Steve

> | i just thought maybe something like
> | winsock listening for the ping could
[quoted text clipped - 17 lines]
> are not forwarded "up the chain", but instead are responded to directly
> by the driver.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.