Solved

Ping sources (WinSock2)...

Posted on 1998-10-13
6
994 Views
Last Modified: 2008-03-04
I need Delphi 4 sources (no components without sources, please) for a little ping function using WinSock2 (no ICMP.DLL, please).
Thank you...  :-)

Regards, Madshi.
0
Comment
Question by:Madshi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 7

Expert Comment

by:BlackMan
ID: 1342660
Andreas Hörstemeier has a packagde with both a ICMP and a Socket version of Ping.
Check http://www.hoerstemeier.com/files/icmp03.zip
0
 
LVL 20

Author Comment

by:Madshi
ID: 1342661
BlackMan,

thanx for your answer. Unfortunately Andreas' components are based on WinSock(1) and the "ICMP.DLL". Look at this extract from one of his units:

{ Microsoft doesn't support the standard way ICMP is implemented using
  sockets, that means by the SOCK_RAW socket type - they only work as
  user administrator! And there's no way to set the TTL for the packets, so
  there's no way to build a TraceRoute using winsock. So this unit uses their
  ICMP.DLL, although MS discourages it's use - once they have a better solution
  this properitary implementation will vanish. So be careful where you
  use this unit! }

With WinSock2 Microsoft DOES support SOCK_RAW. So I need an implementation of ping for WinSock2.

Sorry, Madshi.
0
 
LVL 7

Expert Comment

by:BlackMan
ID: 1342662
I think that is a "general" comment-cut from the WinSock site, the history.txt says:
1997-07-02  0.2  added support for winsock ICMP calls (TPing only yet)
And if you look at the TPing component in ICMP.PAS, it look like it has a socket-mode..
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 20

Author Comment

by:Madshi
ID: 1342663
Sorry BlackMan, you're right. Please post a dummy answer again...  :-)
0
 
LVL 7

Accepted Solution

by:
BlackMan earned 50 total points
ID: 1342664
Andreas Hörstemeier has a packagde with both a ICMP and a Socket version of Ping.
Check http://www.hoerstemeier.com/files/icmp03.zip

0
 
LVL 20

Author Comment

by:Madshi
ID: 1342665
Thanx again...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question