diff options
author | Determinant <[email protected]> | 2019-06-07 22:57:05 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-06-07 22:57:05 -0400 |
commit | 92ad2074c4406d25ce52957890d9e48f6d769efe (patch) | |
tree | 22b331c9b4e4e1aefa53321e8aaf6b60214ec68e /test_msgnet | |
parent | 9af95694330d8d0a56f534509e98dbac8e89e85e (diff) |
add makefile
Diffstat (limited to 'test_msgnet')
-rw-r--r-- | test_msgnet/main.go | 6 |
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 |