From WikiChip
$sockbr identifier - mIRC
< mirc‎ | identifiers

$sockbr returns the number of bytes read from the last /sockread command done for that socket.


Synopsis[edit]

$sockbr

Parameters[edit]

None

Properties[edit]

None

Example[edit]

on *:sockread:name:{
  if ($sockerr) return
  var %a
  ;sockread %a reads one line, or nothing
  ;we check if we read anything before comparing
  if (!$sockbr) return
  if (%a == something) echo -a ok
}

Compatibility[edit]

Added: mIRC v5.3
Added on: 13 Dec 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See also[edit]

[Expand]
v · d · e mIRC identifier list