[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 07/10: udp sink: actually send 0-byte packe
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 07/10: udp sink: actually send 0-byte packets at EOF |
Date: |
Mon, 25 Apr 2016 22:56:28 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 403a41671d8b867e6ed68e3eeb81e57766c7cc32
Author: Andy Sloane <address@hidden>
Date: Mon Apr 18 08:49:26 2016 -0700
udp sink: actually send 0-byte packets at EOF
Adjusted udp source to expect a 0-byte packet at EOF too.
---
gr-blocks/lib/udp_sink_impl.cc | 2 +-
gr-blocks/lib/udp_source_impl.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gr-blocks/lib/udp_sink_impl.cc b/gr-blocks/lib/udp_sink_impl.cc
index 6989fdb..b540a7d 100644
--- a/gr-blocks/lib/udp_sink_impl.cc
+++ b/gr-blocks/lib/udp_sink_impl.cc
@@ -99,7 +99,7 @@ namespace gr {
gr::thread::scoped_lock guard(d_mutex); // protect d_socket from work()
// Send a few zero-length packets to signal receiver we are done
- boost::array<char, 1> send_buf = {{ 0 }};
+ boost::array<char, 0> send_buf;
if(d_eof) {
int i;
for(i = 0; i < 3; i++)
diff --git a/gr-blocks/lib/udp_source_impl.cc b/gr-blocks/lib/udp_source_impl.cc
index b1977a8..e09ed43 100644
--- a/gr-blocks/lib/udp_source_impl.cc
+++ b/gr-blocks/lib/udp_source_impl.cc
@@ -149,7 +149,7 @@ namespace gr {
if(!error) {
{
boost::lock_guard<gr::thread::mutex> lock(d_udp_mutex);
- if(d_eof && (bytes_transferred == 1) && (d_rxbuf[0] == 0x00)) {
+ if(d_eof && (bytes_transferred == 0)) {
// If we are using EOF notification, test for it and don't
// add anything to the output.
d_residual = WORK_DONE;
- [Commit-gnuradio] [gnuradio] branch maint updated (2a68b68 -> 4aa9404), git, 2016/04/25
- [Commit-gnuradio] [gnuradio] 07/10: udp sink: actually send 0-byte packets at EOF,
git <=
- [Commit-gnuradio] [gnuradio] 09/10: Merge remote-tracking branch 'mmueller/default_conf_fix_comment' into maint, git, 2016/04/25
- [Commit-gnuradio] [gnuradio] 08/10: Merge remote-tracking branch 'mmueller/gr_uhd_blocks_samp_rate_before_time_source' into maint, git, 2016/04/25
- [Commit-gnuradio] [gnuradio] 02/10: grc: show underscores in recent files menu, git, 2016/04/25
- [Commit-gnuradio] [gnuradio] 05/10: config parser doesn't understand C Multiline Comments, git, 2016/04/25
- [Commit-gnuradio] [gnuradio] 06/10: improved parsability by OVER 9000, git, 2016/04/25
- [Commit-gnuradio] [gnuradio] 10/10: Merge remote-tracking branch 'gnuradio-wg-grc/maint_grcwg' into maint, git, 2016/04/25
- [Commit-gnuradio] [gnuradio] 03/10: grc: don't try to auto-generate non-hier blocks, git, 2016/04/25
- [Commit-gnuradio] [gnuradio] 04/10: setting the sample rate before setting the time source avoiding auto-MCR trap, git, 2016/04/25
- [Commit-gnuradio] [gnuradio] 01/10: qtgui: more appropriate doxygen link., git, 2016/04/25