diff options
author | Martin Braun <martin.braun@ettus.com> | 2015-03-08 22:06:28 -0700 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2015-03-13 09:23:14 -0400 |
commit | 854ff515b60cbacffffb0f9bdef07a031d666dc4 (patch) | |
tree | 5e1ebdafb64a21065e0def0a50c987993651522e /gr-blocks/lib/udp_source_impl.h | |
parent | 41f1ba4171b74354ab25cf066451d8ba940d9ec4 (diff) |
blocks: Fixed UDP source bug
Before, it would actually read too few bytes from the
incoming buffer.
Also removed some 'magic' constants and replaced by const
variables.
Diffstat (limited to 'gr-blocks/lib/udp_source_impl.h')
-rw-r--r-- | gr-blocks/lib/udp_source_impl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gr-blocks/lib/udp_source_impl.h b/gr-blocks/lib/udp_source_impl.h index 949364cf29..42cb64dabe 100644 --- a/gr-blocks/lib/udp_source_impl.h +++ b/gr-blocks/lib/udp_source_impl.h @@ -44,6 +44,8 @@ namespace gr { ssize_t d_sent; // track how much of d_residbuf we've outputted size_t d_offset; // point to residbuf location offset + static const int BUF_SIZE_PAYLOADS; //!< The d_residbuf size in multiples of d_payload_size + std::string d_host; unsigned short d_port; |