diff options
author | Determinant <[email protected]> | 2019-06-17 16:19:38 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-06-17 16:19:38 -0400 |
commit | a154cb399a6fcbd3d4fd19ab46aa2c107128d344 (patch) | |
tree | d95f57924cca6fa2235068c762550c161b1103a5 /src | |
parent | 01a5e352f11ee4c507f4304e4d41e069276164f0 (diff) |
...
Diffstat (limited to 'src')
-rw-r--r-- | src/network.cpp | 4 |
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); } |