Solved

Ping sources (WinSock2)...

Posted on 1998-10-13
6
985 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
delphi exception 7 64
Simple Delphi Question 9 90
add combobox item based on numbers 9 141
Dev express lookupcombo 3 28
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

772 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