Add -s and -t switch to /sockread:
/sockread -sfn [sockname] [[numbytes] {%var|&binvar}]
-s switch suspends triggering of the sockread event for that socket (mIRC doesn't read any data and the sockets rcv buffer fills up)
In on sockread events [sockname] when omitted defaults to $sockname, otherwise it is mandatory.
if %var or &binvar are specified also reads data one time from the socket.
/sockread -t <sockname>
re-enables triggering of the sockread event for that socket
If the -s or the -t switch are used you can also use /sockread outside on sockread.
Add /sockpeek command:
/sockpeek [-fn] [sockname] [numbytes] <%var|&binvar>
Reads data from the socket whitout removing it from the socket's buffer.
In on sockread events [sockname] when omitted defaults to $sockname, otherwise it is mandatory.
If you only /sockpeek in an on Sockread event the event is re-triggered, you can use /sockread -s to prevent this.
Add $sock.inip and $sock.inport:
$sock.ipip, $sock.inport
Return information about remote of attempted incoming connections in an on Socklisten event.