From Scriptwiki
Revision as of 23:50, 3 May 2007 by Microbe (talk | contribs) (added category)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

$sockbr is set to the number of bytes read by a /sockread command. It is used to test whether any information was in fact read from the buffer.


on 1:sockread:testing:{
 if ($sockerr > 0) return
 sockread %temp
 if ($sockbr == 0) return
 if (%temp == $null) %temp = -
 echo 4 %temp
 goto nextread