B:BD[
2.147] → [
2.147:587]
println("irc sock.read buf $bufidx .. $buf.len -> $nbytes bytes read")
bufidx_stop := bufidx+nbytes
if idx := idx_of(buf[bufidx..bufidx_stop]) {
println("irc middle checking $bufidx .. $bufidx_stop => newline at $idx")
bufidx_nl := bufidx + idx
bufidx_nlstop := bufidx_nl - 1
str := string(buf[bufidx..bufidx_nlstop].clone())
println("irc middle sending $bufidx .. $bufidx_nlstop len ($str.len)$str ")
println('irc sock.read buf $bufidx .. $buf.len -> $nbytes bytes read')
buflen_stop := bufidx + nbytes
if idx := idx_of(buf[bufidx..buflen_stop]) {
// println('irc middle checking $bufidx .. $buflen_stop => newline at $idx')
bufidx_nl := bufidx + idx
str := string(buf[bufidx..bufidx_nl].clone())
// println('irc middle sending $bufidx .. $bufidx_nl len ($str.len)$str ')