aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-06-29 17:33:34 -0400
committerDeterminant <[email protected]>2019-06-29 17:33:34 -0400
commitb06eef583fb9084f29e416a1af7555de4a73f764 (patch)
tree6a31770308ca55125750561f114cc7e765f19cce /include
parent5f617d88a399f276133b4187eb31ca49e5f1338a (diff)
...
Diffstat (limited to 'include')
-rw-r--r--include/salticidae/conn.h1
-rw-r--r--include/salticidae/network.h4
2 files changed, 2 insertions, 3 deletions
diff --git a/include/salticidae/conn.h b/include/salticidae/conn.h
index a1b5633..a345845 100644
--- a/include/salticidae/conn.h
+++ b/include/salticidae/conn.h
@@ -114,7 +114,6 @@ class ConnPool {
Conn(Conn &&other) = delete;
virtual ~Conn() {
- //std::atomic_thread_fence(std::memory_order_acquire);
SALTICIDAE_LOG_INFO("destroyed %s", std::string(*this).c_str());
}
diff --git a/include/salticidae/network.h b/include/salticidae/network.h
index 8372b9a..1f21c92 100644
--- a/include/salticidae/network.h
+++ b/include/salticidae/network.h
@@ -1264,7 +1264,7 @@ peernetwork_conn_t *peernetwork_conn_new_from_msgnetwork_conn_unsafe(const msgne
peernetwork_conn_t *peernetwork_conn_copy(const peernetwork_conn_t *self);
netaddr_t *peernetwork_conn_get_peer_addr(const peernetwork_conn_t *self);
void peernetwork_conn_free(const peernetwork_conn_t *self);
-void peernetwork_send_msg(peernetwork_t *self, const msg_t * msg, const netaddr_t *addr);
+bool peernetwork_send_msg(peernetwork_t *self, const msg_t * msg, const netaddr_t *addr);
void peernetwork_send_msg_deferred_by_move(peernetwork_t *self, msg_t * _moved_msg, const netaddr_t *addr);
void peernetwork_multicast_msg_by_move(peernetwork_t *self, msg_t *_moved_msg, const netaddr_array_t *addrs);
void peernetwork_listen(peernetwork_t *self, const netaddr_t *listen_addr, SalticidaeCError *err);
@@ -1285,7 +1285,7 @@ msgnetwork_conn_t *msgnetwork_conn_new_from_clientnetwork_conn(const clientnetwo
clientnetwork_conn_t *clientnetwork_conn_new_from_msgnetwork_conn_unsafe(const msgnetwork_conn_t *conn);
clientnetwork_conn_t *clientnetwork_conn_copy(const clientnetwork_conn_t *self);
void clientnetwork_conn_free(const clientnetwork_conn_t *self);
-void clientnetwork_send_msg(clientnetwork_t *self, const msg_t * msg, const netaddr_t *addr);
+bool clientnetwork_send_msg(clientnetwork_t *self, const msg_t * msg, const netaddr_t *addr);
void clientnetwork_send_msg_deferred_by_move(clientnetwork_t *self, msg_t * _moved_msg, const netaddr_t *addr);
#ifdef __cplusplus