On SOCKOPEN » History » Version 3
Per Amundsen, 11/19/2015 10:26 AM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | 2 | Per Amundsen | *<notextile>on <level>:SOCKOPEN:<name>:<commands></notextile>* |
4 | 1 | Per Amundsen | |
5 | Triggers when a [[/sockopen]] command is successful and a connection has been made. |
||
6 | |||
7 | 3 | Per Amundsen | _See also [[on SOCKOPEN]], [[on SOCKLISTEN]], [[on SOCKREAD]], [[on SOCKWRITE]], [[/socklisten]], [[/sockopen]], [[/sockaccept]], [[$sock]], [[$sockbr]], [[$sockerr]], [[$sockname]]._ |
8 | 1 | Per Amundsen | |
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> |