Solved

Ping sources (WinSock2)...

Posted on 1998-10-13
6
977 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
  • 3
  • 3
6 Comments
 
LVL 7

Expert Comment

by:BlackMan
Comment Utility
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
Comment Utility
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
Comment Utility
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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 20

Author Comment

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

Accepted Solution

by:
BlackMan earned 50 total points
Comment Utility
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
Comment Utility
Thanx again...
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now