- Golang
- Network Tools (PacketSender for me)
Download PacketSender in https://github.com/dannagle/PacketSender
# test tcp and parser with echo_database which only reply the same content
address: 127.0.0.1
port: 6380
content: *3\r\n$3\r\nSET\r\n$3\r\nkey\r\n$5\r\nvalue\r\n
// output:*3\r\n$3\r\nSET\r\n$3\r\nkey\r\n$5\r\nvalue\r\n
# send a SET command to db
address: 127.0.0.1
port: 6380
content: *3\r\n$3\r\nSET\r\n$3\r\nkey\r\n$5\r\nvalue\r\n
// output: +OK\r\n
# send a GET command to db
send content: *2\r\n$3\r\nGET\r\n$3\r\nkey\r\n
// output: $5\r\nvalue\r\n