The ON SOCKLISTEN event triggers when a connection is made on a listening socket created with /socklisten
Synopsis
ON <level>:SOCKLISTEN:<matchtext>:<commands>
Parameters
<matchtext>The name of the socket you want event to trigger on <commands>The commands to be performed when the event listener's criteria is met.
Accepting a connection
Note: By design, you cannot prevent a socket from being accepted, as in, Windows accept the connection even before mIRC.
You can use /sockaccept <newsocket> to accept a socket, mIRC create the new socket.
Examples
<
Compatibility
Added: mIRC v3.5
Added on: 07 Aug 1995
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See Also
A on Action, on Active, on Agent, on Appactive B on Ban C on Char, on Chat, on Chatclose, on Chatopen, on Close, on Connect, on Connectfail, on Ctcpreply D on Dccserver, on Dehelp, on Deop, on Deowner, on Devoice, on Dialog, on Disconnect, on Dns |
J on Join K on Keydown, on Keyup, on Kick M on Midiend, on Mode, on Mp3end |
Q on Queryclose, on Queryopen, on Quit S on Sendfail, on Serv, on Servclose, on Servermode, on Serverop, on Servopen, on Signal, on Snotice, on Sockclose, on Socklisten, on Sockopen, on Sockread, on Sockwrite, on Start U on Udpread, on Udpwrite, on Unban, on Unload, on Unotify, on Usermode |
/sockwrite /sockclose /sockread /sockaccept /sockpause $sock $sockbr /sockerr