diff options
author | Determinant <[email protected]> | 2019-06-04 18:59:00 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-06-04 18:59:00 -0400 |
commit | da42ddf96c78a73b4cf5f8854e98e009f4f174a4 (patch) | |
tree | 2435817585507cbc2a158fd84996884263dcc8ec /src/network.cpp | |
parent | ebada91a1327da99f1827c7e4c15fc3bee527d58 (diff) |
...
Diffstat (limited to 'src/network.cpp')
-rw-r--r-- | src/network.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/network.cpp b/src/network.cpp index 0b12131..d2d9615 100644 --- a/src/network.cpp +++ b/src/network.cpp @@ -55,6 +55,14 @@ msgnetwork_t *msgnetwork_conn_get_net(const msgnetwork_conn_t *conn) { void msgnetwork_start(msgnetwork_t *self) { self->start(); } +msgnetwork_conn_mode_t msgnetwork_conn_get_mode(const msgnetwork_conn_t *conn) { + return conn->get_mode(); +} + +netaddr_t msgnetwork_conn_get_addr(const msgnetwork_conn_t *conn) { + return new netaddr_t(conn->get_addr()); +} + } #endif |