DataIn Event

Fired when new ICMP messages come in.

Syntax

ANSI (Cross Platform)
virtual int FireDataIn(ICMPPortDataInEventParams *e);
typedef struct {
int MessageType;
int MessageSubType;
const char *MessageData; int lenMessageData;
int Checksum;
const char *SourceAddress; int reserved; } ICMPPortDataInEventParams; Unicode (Windows) virtual INT FireDataIn(ICMPPortDataInEventParams *e);
typedef struct {
INT MessageType;
INT MessageSubType;
LPCSTR MessageData; INT lenMessageData;
INT Checksum;
LPCWSTR SourceAddress; INT reserved; } ICMPPortDataInEventParams;
- (void)onDataIn:(int)messageType :(int)messageSubType :(NSData*)messageData :(int)checksum :(NSString*)sourceAddress;
#define EID_ICMPPORT_DATAIN 1

virtual INT IPWORKS_CALL FireDataIn(INT &iMessageType, INT &iMessageSubType, LPSTR &lpMessageData, INT &lenMessageData, INT &iChecksum, LPSTR &lpszSourceAddress);

Remarks

The MessageType parameter shows the type of the ICMP messages and MessageSubType its subtype.

The MessageData parameter contains the message data.

The Checksum parameter is True or False depending on the ICMP checksum check on the message.

Note that events are not re-entrant. Performing time consuming operations within this event will prevent it from firing again in a timely manner and may impact overall performance.

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