Difference between revisions of "$sockbr"

From Scriptwiki
Jump to: navigation, search
m (a minor fix+ links)
m (added category)
 
Line 11: Line 11:
 
   goto nextread
 
   goto nextread
 
  }
 
  }
 +
 +
[[Category:socket]]

Latest revision as of 22:50, 3 May 2007

$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.

Example

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