From 625a12540792512c968a6f45418a694a5f6aef76 Mon Sep 17 00:00:00 2001 From: Johnathan Corgan Date: Fri, 21 May 2010 17:23:06 -0700 Subject: gnuradio-core: allow swig to handle exceptions in UDP source/sink --- gnuradio-core/src/lib/io/gr_udp_sink.i | 5 +++-- gnuradio-core/src/lib/io/gr_udp_source.i | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'gnuradio-core/src') diff --git a/gnuradio-core/src/lib/io/gr_udp_sink.i b/gnuradio-core/src/lib/io/gr_udp_sink.i index fc8059f36..a71006ae0 100755 --- a/gnuradio-core/src/lib/io/gr_udp_sink.i +++ b/gnuradio-core/src/lib/io/gr_udp_sink.i @@ -26,14 +26,15 @@ GR_SWIG_BLOCK_MAGIC(gr,udp_sink) gr_udp_sink_sptr gr_make_udp_sink (size_t itemsize, const char *host, unsigned short port, - int payload_size=1472, bool eof=true); + int payload_size=1472, bool eof=true) throw (std::runtime_error); class gr_udp_sink : public gr_sync_block { protected: gr_udp_sink (size_t itemsize, const char *host, unsigned short port, - int payload_size, bool eof); + int payload_size, bool eof) + throw (std::runtime_error); public: ~gr_udp_sink (); diff --git a/gnuradio-core/src/lib/io/gr_udp_source.i b/gnuradio-core/src/lib/io/gr_udp_source.i index e1b23074d..2001f33e9 100755 --- a/gnuradio-core/src/lib/io/gr_udp_source.i +++ b/gnuradio-core/src/lib/io/gr_udp_source.i @@ -25,13 +25,13 @@ GR_SWIG_BLOCK_MAGIC(gr,udp_source) gr_udp_source_sptr gr_make_udp_source (size_t itemsize, const char *host, unsigned short port, int payload_size=1472, - bool eof=true, bool wait=true); + bool eof=true, bool wait=true) throw (std::runtime_error); class gr_udp_source : public gr_sync_block { protected: gr_udp_source (size_t itemsize, const char *host, - unsigned short port, int payload_size, bool eof, bool wait); + unsigned short port, int payload_size, bool eof, bool wait) throw (std::runtime_error); public: ~gr_udp_source (); -- cgit