From 1de4339c53bc55b4b776aac6c63f4ffbd5f00bd1 Mon Sep 17 00:00:00 2001 From: Determinant Date: Tue, 11 Jun 2019 20:13:46 -0400 Subject: fix bug --- include/salticidae/network.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/salticidae/network.h b/include/salticidae/network.h index 98bd1e4..e7e77f5 100644 --- a/include/salticidae/network.h +++ b/include/salticidae/network.h @@ -844,6 +844,8 @@ msgnetwork_t *msgnetwork_new(const eventcontext_t *ec, const msgnetwork_config_t void msgnetwork_free(const msgnetwork_t *self); bool msgnetwork_send_msg(msgnetwork_t *self, const msg_t *msg, const msgnetwork_conn_t *conn); msgnetwork_conn_t *msgnetwork_connect(msgnetwork_t *self, const netaddr_t *addr); +msgnetwork_conn_t *msgnetwork_conn_copy(const msgnetwork_conn_t *self); +void msgnetwork_conn_free(const msgnetwork_conn_t *self); void msgnetwork_listen(msgnetwork_t *self, const netaddr_t *listen_addr); void msgnetwork_start(msgnetwork_t *self); void msgnetwork_terminate(msgnetwork_t *self, const msgnetwork_conn_t *conn); @@ -875,6 +877,8 @@ bool peernetwork_has_peer(const peernetwork_t *self, const netaddr_t *paddr); const peernetwork_conn_t *peernetwork_get_peer_conn(const peernetwork_t *self, const netaddr_t *paddr); msgnetwork_t *peernetwork_as_msgnetwork(peernetwork_t *self); msgnetwork_conn_t *msgnetwork_conn_new_from_peernetwork_conn(const peernetwork_conn_t *conn); +peernetwork_conn_t *peernetwork_conn_copy(const peernetwork_conn_t *self); +void peernetwork_conn_free(const peernetwork_conn_t *self); void peernetwork_send_msg_by_move(peernetwork_t *self, msg_t * _moved_msg, const netaddr_t *paddr); void peernetwork_multicast_msg_by_move(peernetwork_t *self, msg_t *_moved_msg, const netaddr_array_t *paddrs); void peernetwork_listen(peernetwork_t *self, const netaddr_t *listen_addr); -- cgit v1.2.3-70-g09d2