TYF47LXEGOXZCZNC5WVEFLR3WBBXKOZM5LU5ZXQLEXNNHOWT6MAQC
GSDBVUTOZWOIOFUVNH7V6IAKTOGPMZVKP42NP3VD73MPFJQR3Q7AC
L77BUZBKT7UDCUK7K22HIQJPHLMOQ4TAPK4SPLGYVMC4ZKXKLGLQC
UVGQA4JL7UY6HSEMU2JDRZLT44QJAVKV6ZBMWOFHDFHJZLTM5NKAC
H7PPEYC35JOQ2NSSEYVPTFWZBNO5WXRWG5X3XR3JGX5R2BBU5WWAC
4DHN3FJ7YPSEPXXU2LCTLKGCAKH6RLGLTYFN2P6XTZJDPR5SFJMAC
S4P2B3FPF57HPHTIAYGMPCVKB7573IB5ZBKNXVBTB6ICCPF55WNQC
ZMAZUHFHJOW2GSUH5SUDXRG4STQ6PQHWYGZIZHEJCN73PSNQOAAQC
pub fn (mut self Actor) status() {
}
'irc' { println("match irc") irc_add(conn) }
'status' { println("match status") status(conn) }
else { println("match else: $cmd") status(conn) }
'irc' {
println('match irc')
irc_add(conn)
}
'status' {
println('match status')
status(conn)
}
else {
println('match else: $cmd')
status(conn)
}
addr := conn.peer_addr() or {panic(err) }
println("--- $addr")
addr := conn.peer_addr() or { panic(err) }
println('--- $addr')
}
fn status_data(conn net.TcpConn) {
mut params := map[string]string{}
params['verb'] = 'status'
jstr := json.encode(params)
conn.write(jstr.bytes())