aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-06-25 12:12:02 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-06-25 12:12:02 +0200
commit3f4a00c3a4cc1c564dc4c55ae2c52cf9fda37ade (patch)
treea09f65fa696fb62d5057c9e654a63e4d74367002 /misc
parent6135d4b6ff255066faf8a78aad9e985d11315917 (diff)
Add second status response
Diffstat (limited to 'misc')
-rw-r--r--misc/main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/misc/main.go b/misc/main.go
index 15a52d5..213de64 100644
--- a/misc/main.go
+++ b/misc/main.go
@@ -128,7 +128,7 @@ func recv(c net.Conn) []byte {
}
func dump(b []byte, dir string) []byte {
- fmt.Println(dir)
+ log.Println(dir)
fmt.Println(hex.Dump(b))
return b
}
@@ -146,6 +146,9 @@ func main() {
dump(recv(c), "<<< Recv status")
send(c, dump(status, ">>> Send status"))
+ dump(recv(c), "<<< Recv status")
+ send(c, dump(status, ">>> Send status"))
+
send(c, dump(release, ">>> Send release"))
dump(recv(c), "<<< Recv release")
}