Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : IRC Gateway Functions : ircg_set_on_die

ircg_set_on_die

Set action to be executed when connection dies (PHP 4 >= 4.2.0, PHP 5 <= 5.0.5)
bool ircg_set_on_die ( resource connection, string host, int port, string data )

In case of the termination of the connection, IRCG will connect to the specified host, send data to the new host connection and will wait until the remote part closes connection. This can be used to trigger a PHP script for example.

Parameters

connection

A connection resource handle returned by ircg_pconnect().

host

This must be an IPv4 address as IRCG does not resolve host-names due to blocking issues.

port

The port number.

data

The data to be sent before closing the connection.

Return Values

Returns TRUE on success or FALSE on failure.

Notes

Note:

This feature requires IRCG 3.

Code Examples / Notes » ircg_set_on_die

cysk

Remember that this is one of the functions which is only available in the enterprise version of the ircg library (currently ircg 3.0).
So this software is not realy 100% open-source, which is a bit poor..... :-(


Change Language


Follow Navioo On Twitter
ircg_channel_mode
ircg_disconnect
ircg_eval_ecmascript_params
ircg_fetch_error_msg
ircg_get_username
ircg_html_encode
ircg_ignore_add
ircg_ignore_del
ircg_invite
ircg_is_conn_alive
ircg_join
ircg_kick
ircg_list
ircg_lookup_format_messages
ircg_lusers
ircg_msg
ircg_names
ircg_nick
ircg_nickname_escape
ircg_nickname_unescape
ircg_notice
ircg_oper
ircg_part
ircg_pconnect
ircg_register_format_messages
ircg_set_current
ircg_set_file
ircg_set_on_die
ircg_topic
ircg_who
ircg_whois
eXTReMe Tracker