MessageType Property

The type of the ICMP message (part of the ICMP header).

Syntax

ANSI (Cross Platform)
int GetMessageType();
int SetMessageType(int iMessageType); Unicode (Windows) INT GetMessageType();
INT SetMessageType(INT iMessageType);
@property (nonatomic,readwrite,assign,getter=messageType,setter=setMessageType:) int messageType;
- (int)messageType;
- (void)setMessageType:(int)newMessageType;
#define PID_ICMPPORT_MESSAGETYPE 7

IPWORKS_EXTERNAL void* IPWORKS_CALL IPWorks_ICMPPort_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_ICMPPort_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

0

Remarks

This property contains the type of the ICMP message (part of the ICMP header). The ICMP message type is a byte value representing the message class. The message type defines the structure and meaning of the message data assigned to DataToSend.

Types for ICMP messages are defined in the various internet RFCs and other documentation associated with TCP/IP. The following are a few examples of ICMP message types:

0 Echo reply ('ping' reply).
3 Destination unreachable.
4 Source quench.
5 Redirect (change a route).
8 Echo request ('ping' request).
11 Time exceeded for datagram.
12 Parameter problem on datagram.
13 Timestamp request.
14 Timestamp reply.
17 Address mask request.
18 Address mask reply.

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 C++ Edition - Version 20.0 [Build 8307]