SHARE
Facebook X Pinterest WhatsApp

Ping Component and Client

System requirements Windows NT 4.0 [Workstation, Build 1381: Service Pack 4] Windows Sockets 1.1 Network Support [wsock32.dll, ws2_32.dll] Microsoft Visual C++ 6.0, ATL 3.0 [ole32.dll, oleaut32.dll], MFC 4.2 [mfc42.dll] Install and Configure Unzip ping.zip retaining directory structure to any location with approx 40Mb of free space. You’ll get a folder ./pingcomp Build Ping component Open […]

Written By
thumbnail
CodeGuru Staff
CodeGuru Staff
Jan 29, 2000
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

System requirements


  • Windows NT 4.0 [Workstation, Build 1381: Service Pack 4]

  • Windows Sockets 1.1 Network Support [wsock32.dll, ws2_32.dll]

  • Microsoft Visual C++ 6.0, ATL 3.0 [ole32.dll, oleaut32.dll], MFC 4.2 [mfc42.dll]

Install and Configure

Unzip ping.zip retaining directory structure to any location
with approx 40Mb of free space. You’ll get a folder ./pingcomp

Build

Ping component

Open workspace ./pingcomp/pingcomp.dsw, select say ‘Release MinSize’
configuration (faster build), run build. If building a debug configuration,
browse info will be available.

Ensure that component is registered properly, as indicated by output window:
“Performing registration
RegSvr32: DllRegisterServer in .ReleaseMinSizePingcomp.dll succeeded.”

If not try it manually: ‘regsvr32 .ReleaseMinSizePingcomp.dll’

Ping client

Open workspace ./pingcomp/pingclient/pingclient.dsw, select ‘Release’
configuration (faster build), run build. If building a debug configuration,
browse info will be available.

Run

After a component and client are built, you’re ready to run the program,
but **you should login as administrator** to get valuable results, because
of programs use of raw sockets, which can be opened only with admin privileges –
that’s an operation system limitation.

Program’s Design

Ping component (Pingcomp.dll) encapsulates ping implementation and exhibits
corresponding COM interface – IPing.

IPing interface is implemented by CPing class which stores ping parameters, runs
and stops worker thread PingSession(), and fires events through IPingEvents
interface.

CPingImpl class provides low level ping functionality, i.e. creates socket,
form packets, sends, receives and decodes responses.

CProxyIPingEvents class implements IPingEvents interface, it’s generated
by classwizard.

Ping client (Pingclient.exe) provides user interface and interaction with
the component.

CPingDlg class – initializes COM library, creates an instance of Ping component,
advises connection for sinking events.

CPingEvents class – a bridge for transmitting events fired by component to dialog.

Downloads

Download source – 57 Kb

Recommended for you...

Configuring Security Rules In Azure Firewall
Tapas Pal
May 7, 2022
Implementing Circuit Breaker Using Polly
Tapas Pal
Jan 26, 2022
Cloud Computing Types Overview
Zaher Talab
Oct 7, 2021
“Some Day”: 1984: An Editorial on the Future of Computers
Bradley L. Jones
Aug 24, 2021
CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.