Code:
  var %t
  while (1) {
    sockread %t
    if (!$sockbr) break | ; or halt
 
    ;  The rest of the script
  }
  ;  Cleanup
}