mIRC Home    About    Download    Register    News    Help

Print Thread
#15923 18/03/03 12:47 PM
Joined: Dec 2002
Posts: 117
R
Rich Offline OP
Vogon poet
OP Offline
Vogon poet
R
Joined: Dec 2002
Posts: 117
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.


$input(Me like stars, You too?)
#15924 20/03/03 12:41 AM
Joined: Jan 2003
Posts: 87
T
Tat Offline
Babel fish
Offline
Babel fish
T
Joined: Jan 2003
Posts: 87
The only change I want is a $sockread identifier. That returns the stuff in the /sockread event. I hate making a var and then reading. Just gets under my skin.


Link Copied to Clipboard