From 9a2652361a4285f3d30be9f8c77930dfd26cd7b2 Mon Sep 17 00:00:00 2001 From: Andrej Rode Date: Thu, 13 Apr 2017 16:21:03 -0700 Subject: transports: Added get_local_port() method to UDP transports --- host/lib/transport/udp_zero_copy.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'host/lib') diff --git a/host/lib/transport/udp_zero_copy.cpp b/host/lib/transport/udp_zero_copy.cpp index f03919f31..814f41500 100644 --- a/host/lib/transport/udp_zero_copy.cpp +++ b/host/lib/transport/udp_zero_copy.cpp @@ -244,6 +244,7 @@ public: size_t get_num_send_frames(void) const {return _num_send_frames;} size_t get_send_frame_size(void) const {return _send_frame_size;} + uint16_t get_local_port(void) const {return _socket->local_endpoint().port();} private: //memory management -> buffers and fifos -- cgit v1.2.3