Internet Direct (Indy) Version 9.0.2 Beta
TIdIRCServer.OnCommandPing
Event handler for the IRC PING command.

property OnCommandPing: TIdIrcTwoParmEvent;
Description
OnCommandPing is a TIdIrcTwoParmEvent event handler that allows the server to respond to the IRC PING command. PING is used to test for the presence of an active client at the other end of the connection. A PING message is sent at regular intervals if no other activity detected coming from a connection. If a connection fails to respond to a PING command within a set amount of time, that connection is closed.

Parm1 is the name of the server where a client PONG response must be sent, and normally represents the server that issued the PING request.

Parm2 is an optional parameter that contains the name of a server where a client PONG response should be forwarded.