diff options
author | Determinant <[email protected]> | 2019-06-29 17:34:57 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-06-29 17:34:57 -0400 |
commit | f3c624b8a1577a7b3f8efb408421450b5d23a7e5 (patch) | |
tree | ef2df5227d6fc0d5681e9962ea54460c3279426d | |
parent | bbd7fad4b9fc657780fa35dcdc979e72200eb053 (diff) |
...
-rw-r--r-- | network.go | 8 | ||||
m--------- | salticidae | 0 |
2 files changed, 4 insertions, 4 deletions
@@ -402,8 +402,8 @@ func (self PeerNetwork) Listen(listenAddr NetAddr, err *Error) { } // Send a message to the given peer. -func (self PeerNetwork) SendMsg(msg Msg, addr NetAddr) { - C.peernetwork_send_msg(self.inner, msg.inner, addr.inner) +func (self PeerNetwork) SendMsg(msg Msg, addr NetAddr) bool { + return bool(C.peernetwork_send_msg(self.inner, msg.inner, addr.inner)) } // Send a message to the given peer, using a worker thread to seralize and put @@ -512,8 +512,8 @@ func (self ClientNetworkConn) Copy() ClientNetworkConn { func (self ClientNetworkConn) free() { C.clientnetwork_conn_free(self.inner) } // Send a message to the given client. -func (self ClientNetwork) SendMsg(msg Msg, addr NetAddr) { - C.clientnetwork_send_msg(self.inner, msg.inner, addr.inner) +func (self ClientNetwork) SendMsg(msg Msg, addr NetAddr) bool { + return bool(C.clientnetwork_send_msg(self.inner, msg.inner, addr.inner)) } // Send a message to the given client, using a worker thread to seralize and put diff --git a/salticidae b/salticidae -Subproject 5f617d88a399f276133b4187eb31ca49e5f1338 +Subproject b06eef583fb9084f29e416a1af7555de4a73f76 |