Project

General

Profile

On SOCKLISTEN » History » Version 3

Per Amundsen, 11/19/2015 10:23 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*<notextile>on <level>:SOCKLISTEN:name:<commands></notextile>*
4
5
Triggers when someone tries to connect to a port that you are listening on using [[/socklisten]].
6
7
_See also [[on SOCKCLOSE]], [[on SOCKREAD]], [[on SOCKWRITE]], [[/socklisten]], [[/sockopen]], [[$sock]], [[$sockname]]._
8
9
*Parameters*
10
11
<level> - The level for the event to trigger.
12 2 Per Amundsen
<name> - The [[$sockname]] to listen to.
13 1 Per Amundsen
<commands> - The commands to be performed when the event listener's criteria is met.
14
15
*Example*
16
17
<pre>
18
; Listen for requests to port 4242.
19
/socklisten adiirc 4242
20
21
; When someone is connecting, accept the connection.
22
on *:SOCKLISTEN:adiirc:{
23
  /sockaccept name
24
}
25
</pre>