diff options
author | Thomas Habets <thomas@habets.se> | 2020-03-22 17:57:59 +0000 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2020-03-27 08:46:42 -0700 |
commit | 94878530c26606b5b1d83d9dfb154e3b5e6e823a (patch) | |
tree | a836a518ac48f5fd346d01ef5341586e1ffc3b5c /gr-blocks/lib/udp_source_impl.h | |
parent | 4329df15bd927a355ec66ce55876ad2e5b11fcf8 (diff) |
blocks/udp_source: Remove manual memory management for buffers
Diffstat (limited to 'gr-blocks/lib/udp_source_impl.h')
-rw-r--r-- | gr-blocks/lib/udp_source_impl.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gr-blocks/lib/udp_source_impl.h b/gr-blocks/lib/udp_source_impl.h index 36d4e2b199..418a19b37d 100644 --- a/gr-blocks/lib/udp_source_impl.h +++ b/gr-blocks/lib/udp_source_impl.h @@ -23,11 +23,11 @@ class udp_source_impl : public udp_source { private: const size_t d_itemsize; - int d_payload_size; // maximum transmission unit (packet length) - const bool d_eof; // look for an EOF signal - bool d_connected; // are we connected? - char* d_rxbuf; // get UDP buffer items - char* d_residbuf; // hold buffer between calls + int d_payload_size; // maximum transmission unit (packet length) + const bool d_eof; // look for an EOF signal + bool d_connected; // are we connected? + std::vector<char> d_rxbuf; // get UDP buffer items + std::vector<char> d_residbuf; // hold buffer between calls ssize_t d_residual; // hold information about number of bytes stored in residbuf ssize_t d_sent; // track how much of d_residbuf we've outputted |