aboutsummaryrefslogtreecommitdiff
path: root/test_msgnet/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'test_msgnet/main.go')
-rw-r--r--test_msgnet/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test_msgnet/main.go b/test_msgnet/main.go
index b768adf..f1d82dc 100644
--- a/test_msgnet/main.go
+++ b/test_msgnet/main.go
@@ -66,7 +66,7 @@ func onReceiveHello(__msg *C.struct_msg_t, _conn *C.struct_msgnetwork_conn_t) {
conn := salticidae.MsgNetworkConn(_conn)
net := conn.GetNet()
name := bob.name
- if net == alice.net.GetInner() {
+ if net == alice.net {
name = alice.name
}
msg := msgHelloUnserialize(_msg)
@@ -81,7 +81,7 @@ func onReceiveAck(_ *C.struct_msg_t, _conn *C.struct_msgnetwork_conn_t) {
conn := salticidae.MsgNetworkConn(_conn)
net := conn.GetNet()
name := bob.name
- if net == alice.net.GetInner() {
+ if net == alice.net {
name = alice.name
}
fmt.Printf("[%s] the peer knows\n", name)
@@ -92,7 +92,7 @@ func connHandler(_conn *C.struct_msgnetwork_conn_t, connected C.bool) {
conn := salticidae.MsgNetworkConn(_conn)
net := conn.GetNet()
n := &bob
- if net == alice.net.GetInner() {
+ if net == alice.net {
n = &alice
}
name := n.name