?
Solved

Ping sources (WinSock2)...

Posted on 1998-10-13
6
Medium Priority
?
997 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 200 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

Technology Partners: 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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month14 days, 1 hour left to enroll

801 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