Site Tools


#$EPIC: on_server_status.txt,v 1.2 2007/02/13 14:21:02 jnelson Exp $


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


This event is thrown whenever a server status changes. A status might change because a server is waiting for some asynchronous action to complete.

The statuses are (this list may change)

CREATEDThis is the initial state of a new server that has never been used. Because it is the initial state, you can't catch it.
RECONNECTSet when you ask the client to connect to the server
DNSSet when the client waits for the DNS lookups to complete
CONNECTINGSet when the client waits for non-blocking connect to complete
SSL_CONNECTINGSet when the client waits for SSL negotiation to complete
REGISTERINGSet when the client can begin protocol negotiation (USER and PASS)
SYNCINGSet when the client has been accepted by the server, while it is doing its initial setup wiwth the server
ACTIVESet when you can start using the server for whatever you want to do – join channels, msg people, etc
EOFSet when the client is told by the OS the socket was closed by the server.
ERRORSet when the client detects an unrecoverable error – usually before we reach the “ACTIVE” state
CLOSINGSet when the client has decided to shut down the connection
DELETEDSet when you do server -delete


$0 The server refnum
$1 The server's old status
$2 The server's new status


This first appeared in EPIC5-0.0.2

on_server_status.txt · Last modified: 2013/01/08 15:36 by