ASP Ping Brief Introduction

Source: Internet
Author: User
Home: http://www.serverobjects.com/
Download: Http://www.serverobjects.com/comp/aspping.zip
aspping provides command-line programs ping the same basic functionality, aspping is free, no free technical support
Installation:
Copy the DLL file to a subdirectory, such as the WINNTSYSTEM32,WIN95/98 directory of the NT directory Windowssystem.
Registers the DLL file, the command line changes the current directory to that directory, and then type:
regsvr32 aspping.dll
Simple example:
Using this component is very simple
1. Creating objects
2. Set some properties
3. Invoke Ping method
<%
REM ***********************************************************
REM * Create Object
REM ***********************************************************
Set pinger = Server.CreateObject ("Aspping.conn")
REM ***********************************************************
REM * Set the host to ping
REM ***********************************************************
Pinger.remotehost = "www.microsoft.com"
REM ***********************************************************
rem * Ping the number of remote hosts, optional
REM * Default value is 1
REM ***********************************************************
Pinger.pingcount = 2
REM ***********************************************************
rem * Ping and then get the result of the ping
REM ***********************************************************
Response.Write "<pre>" & pinger.ping & "</pre>"
REM ***********************************************************
REM * Release Object
REM ***********************************************************
Set pinger = Nothing
%>
Properties of Aspping
Remotehost-string string
Blocksize-byte bytes
Ttl-byte bytes
Aspping method
Ping-return result (string)
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.