4SFN5L36NYBFPXLBSWXO4KXDBY2W4YP4CNNVX23E2BQ7W2A6GVZQC
sock := net.dial_tcp(addr) or { panic('connect failed') }
println("succeeded")
mut buf := []byte{len: 1024}
nbytes := sock.read(mut buf) or { panic(err) }
println('$sock $nbytes bytes read')
c <- string(buf)
if sock := net.dial_tcp(addr) {
println('matrix succeeded')
mut buf := []byte{len: 1024}
if nbytes := sock.read(mut buf) {
println('matrix $sock $nbytes bytes read')
c <- string(buf)
} else {
println('matrix err')
}
} else {
println('matrix connect fail')
}
sock := net.dial_tcp(addr) or { panic('connect failed') }
mut buf := []byte{len: 1024}
nbytes := sock.read(mut buf) or { panic(err) }
println('$sock $nbytes bytes read')
// unsafe { println(charptr(buf).vstring()) }
// println(buf.bytestr())
c <- string(buf)
if sock := net.dial_tcp(addr) {
println('irc succeeded')
mut buf := []byte{len: 1024}
if nbytes := sock.read(mut buf) {
println('irc $sock $nbytes bytes read')
c <- string(buf)
} else {
println('irc err')
}
} else {
println('irc connect fail')
}