icmp in Delphi6

Posted on 2003-02-25
Medium Priority
Last Modified: 2010-04-04
I'm using icmp from Andreas Hörstemeier in Delphi6 and it will compile and run in the IDE but when I try to build the project I get the following error:

[Error] ICMP.PAS(532): Left side cannot be assigned to

 ticmp_sendblock(requestdata^).icmp_header.icmp_type := ICMP_ECHO;
    ticmp_sendblock(requestdata^).icmp_header.icmp_code := 0;
    ticmp_sendblock(requestdata^).icmp_header.icmp_cksum := 0;
    ticmp_sendblock(requestdata^).icmp_header.icmp_seq := f_packet_no;
    inc(f_packet_no);     {  LINE 532   }
    ticmp_sendblock(requestdata^).icmp_header.icmp_id := word(self);
    ticmp_sendblock(requestdata^).icmp_header.icmp_cksum := ICMP_checksum(requestdata^,rq_size);

Is anyone using this VCL in version 6, If so what is the workaround.  I tried to change it but everything I try fails.


Question by:alspivey
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

Accepted Solution

God_Ares earned 600 total points
ID: 8023936
imo f_packet_no is incresed by itself, you don't need to increase it manualy.

If you are only interested in pinging i have made it 2.
you may dl soucecode @
(sorry 4 the popups, free hosting..) and get scanner.zip
you will find pinging there. look into netkit.pas and icmpapi.pas.

hope this helps.

Author Comment

ID: 8026479
I'm not that is the original code

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

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…
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month11 days, 5 hours left to enroll

770 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