# Class TPINGSend

Description | Hierarchy | Fields | Methods | Properties

## Unit

pingsend

## Declaration

`type TPINGSend = class(TSynaClient)`

## Description

Implementation of ICMP PING and ICMPv6 PING.

## Hierarchy

- TObject
- TSynaClient
- TPINGSend

## Overview

### Methods

| `function Ping(const Host: string): Boolean;`
| `constructor Create;`
| `destructor Destroy; override;`

### Properties

| `property PacketSize: Integer read FPacketSize Write FPacketSize;`
| `property PingTime: Integer read FPingTime;`
| `property ReplyFrom: string read FReplyFrom;`
| `property ReplyType: byte read FReplyType;`
| `property ReplyCode: byte read FReplyCode;`
| `property ReplyError: TICMPError read FReplyError;`
| `property ReplyErrorDesc: string read FReplyErrorDesc;`
| `property Sock: TICMPBlockSocket read FSock;`
| `property TTL: byte read FTTL write FTTL;`

## Description

### Methods

| `function Ping(const Host: string): Boolean;`

Send ICMP ping to host and count PingTime. If ping OK, result is `True`.

| `constructor Create;`

| `destructor Destroy; override;`

### Properties

| `property PacketSize: Integer read FPacketSize Write FPacketSize;`

Size of PING packet. Default size is 32 bytes.

| `property PingTime: Integer read FPingTime;`

Time between request and reply.

| `property ReplyFrom: string read FReplyFrom;`

From this address is sended reply for your PING request. It maybe not your requested destination, when some error occured!

| `property ReplyType: byte read FReplyType;`

ICMP type of PING reply. Each protocol using another values! For IPv4 and IPv6 are used different values!

| `property ReplyCode: byte read FReplyCode;`

ICMP code of PING reply. Each protocol using another values! For IPv4 and IPv6 are used different values! For protocol independent value look to ReplyError

| `property ReplyError: TICMPError read FReplyError;`

Return type of returned ICMP message. This value is independent on used protocol!

| `property ReplyErrorDesc: string read FReplyErrorDesc;`

Return human readable description of returned packet type.

| `property Sock: TICMPBlockSocket read FSock;`

Socket object used for TCP/IP operation. Good for seting OnStatus hook, etc.

| `property TTL: byte read FTTL write FTTL;`

TTL value for ICMP query

Generated by PasDoc 0.9.0 on 2012-04-23 21:38:51