On SOCKOPEN » History » Version 1
Per Amundsen, 11/18/2015 03:39 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *<notextile>on <level>:SOCKOPEN:<name>:<commands><notextile>* |
||
4 | |||
5 | Triggers when a [[/sockopen]] command is successful and a connection has been made. |
||
6 | |||
7 | _See also [[on SOCKCLOSE]], [[on SOCKLISTEN]], [[on SOCKREAD]], [[on SOCKWRITE]], [[/sockopen]], [[$sock]], [[$sockname]]._ |
||
8 | |||
9 | *Parameters* |
||
10 | |||
11 | <level> - The level for the event to trigger. |
||
12 | <name> - [[$sockname]] to listen to. |
||
13 | <commands> - The commands to be performed when the event listener's criteria is met. |
||
14 | |||
15 | <pre> |
||
16 | ; Open a connection to AdiIRC.com, port 80. |
||
17 | /sockopen adiirc adiirc.com 80 |
||
18 | |||
19 | on *:SOCKOPEN:adiirc:echo -ag Connection to AdiIRC successful | sockclose adiirc |
||
20 | </pre> |