Site Tools


on_server_lost

Table of Contents

Synopsis:

on [<modes>]server_lost [<serial#>] [-|^]<match> { <action> }

Description:

This hook is triggered whenever the client is disconnected from any server for any reason.

This hook is thrown when the server is in the CLOSING state, but before it switches to the CLOSED state. Whether or not the socket to the server is still up, or usable, is undefined behavior. If you need defined behavior, catch on server_status for the switch to CLOSING.

Parameters:

$0 server refnum
$1 server name
$2- reason for disconnect. usually the same as your QUIT(1) message
on_server_lost.txt · Last modified: 2013/01/08 15:22 by 127.0.0.1