summaryrefslogtreecommitdiffstats
path: root/cmd/client
diff options
context:
space:
mode:
authorbt <bt@rctt.net>2026-03-10 14:10:41 +0100
committerbt <bt@rctt.net>2026-03-10 14:10:41 +0100
commit6dcbb66fcafce3da6d7c00d9679946b77f6f6186 (patch)
treebf5b4dc13290cad2fcf9432051a0dcc2149749cf /cmd/client
parent49f27239bfeae275c06fc21035b9835542a87612 (diff)
downloadsolec-6dcbb66fcafce3da6d7c00d9679946b77f6f6186.tar.gz
solec-6dcbb66fcafce3da6d7c00d9679946b77f6f6186.zip
Fix client and server
Diffstat (limited to 'cmd/client')
-rw-r--r--cmd/client/main.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/cmd/client/main.go b/cmd/client/main.go
index 8bb1c24..bf28e87 100644
--- a/cmd/client/main.go
+++ b/cmd/client/main.go
@@ -36,6 +36,26 @@ func ping(conn net.Conn) {
if _, err := conn.Write(data); err != nil {
panic(err)
}
+
+ test := core.Test{
+ Num1: 1,
+ Time1: time.Now(),
+ Str1: "test string",
+ Num2: 2,
+ Bin1: []byte{0x01, 0x02, 0x03},
+ Num3: 3,
+ Str2: "こんにちは",
+ Num4: 4,
+ }
+
+ data, err = core.Encode(test)
+ if err != nil {
+ panic(err)
+ }
+ if _, err = conn.Write(data); err != nil {
+ panic(err)
+ }
+
time.Sleep(time.Second)
}
}