From 92ad2074c4406d25ce52957890d9e48f6d769efe Mon Sep 17 00:00:00 2001 From: Determinant Date: Fri, 7 Jun 2019 22:57:05 -0400 Subject: add makefile --- test_msgnet/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test_msgnet') 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 -- cgit v1.2.3-70-g09d2