Project

General

Profile

On SOCKLISTEN » History » Revision 4

Revision 3 (Per Amundsen, 11/19/2015 10:23 AM) → Revision 4/7 (Per Amundsen, 11/19/2015 10:24 AM)

_Added in 1.9.0_ 

 *<notextile>on <level>:SOCKLISTEN:name:<commands></notextile>* 

 Triggers when someone tries to connect to a port that you are listening on using [[/socklisten]]. 

 _See also [[on SOCKCLOSE]], [[on SOCKREAD]], [[on SOCKWRITE]], [[/socklisten]], [[/sockopen]], [[/sockaccept]], [[$sock]], [[$sockname]]._ 

 *Parameters* 

 <level> - The level for the event to trigger. 
 <name> - The [[$sockname]] to listen to. 
 <commands> - The commands to be performed when the event listener's criteria is met. 

 *Example* 

 <pre> 
 ; Listen for requests to port 4242. 
 /socklisten adiirc 4242 

 ; When someone is connecting, accept the connection. 
 on *:SOCKLISTEN:adiirc:{ 
   /sockaccept name 
 } 
 </pre>