From d00583942ed67b301d9b8576180e0432d62c09c1 Mon Sep 17 00:00:00 2001 From: Determinant Date: Tue, 25 Feb 2020 17:18:00 -0500 Subject: ... --- src/network.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/network.cpp b/src/network.cpp index 0edc407..4bbd4c5 100644 --- a/src/network.cpp +++ b/src/network.cpp @@ -278,6 +278,10 @@ netaddr_t *peernetwork_conn_get_peer_addr(const peernetwork_conn_t *self) { return new netaddr_t((*self)->get_peer_addr()); } +peerid_t *peernetwork_conn_get_peer_id(const peernetwork_conn_t *self) { + return new peerid_t((*self)->get_peer_id()); +} + void peernetwork_conn_free(const peernetwork_conn_t *self) { delete self; } bool peernetwork_send_msg(peernetwork_t *self, const msg_t * msg, const peerid_t *peer) { -- cgit v1.2.3-70-g09d2