aboutsummaryrefslogtreecommitdiff
path: root/src/network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/network.cpp')
-rw-r--r--src/network.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network.cpp b/src/network.cpp
index 8094ff2..938c105 100644
--- a/src/network.cpp
+++ b/src/network.cpp
@@ -201,6 +201,10 @@ msgnetwork_conn_t *msgnetwork_conn_new_from_peernetwork_conn(const peernetwork_c
return new msgnetwork_conn_t(*conn);
}
+peernetwork_conn_t *peernetwork_conn_new_from_msgnetwork_conn_unsafe(const msgnetwork_conn_t *conn) {
+ return new peernetwork_conn_t(salticidae::static_pointer_cast<peernetwork_t::Conn>(*conn));
+}
+
peernetwork_conn_t *peernetwork_conn_copy(const peernetwork_conn_t *self) {
return new peernetwork_conn_t(*self);
}