Solved

Ping sources (WinSock2)...

Posted on 1998-10-13
6
982 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
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

920 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

15 Experts available now in Live!

Get 1:1 Help Now