summaryrefslogtreecommitdiff
path: root/gnuradio-core
diff options
context:
space:
mode:
authorJohnathan Corgan2010-05-21 17:23:06 -0700
committerJohnathan Corgan2010-05-21 17:23:06 -0700
commit625a12540792512c968a6f45418a694a5f6aef76 (patch)
tree98b81f2f92b6e700cd30f492b580b522805cab71 /gnuradio-core
parentabc51381b06bff0075d68c6e6fa92383446c2fbc (diff)
downloadgnuradio-625a12540792512c968a6f45418a694a5f6aef76.tar.gz
gnuradio-625a12540792512c968a6f45418a694a5f6aef76.tar.bz2
gnuradio-625a12540792512c968a6f45418a694a5f6aef76.zip
gnuradio-core: allow swig to handle exceptions in UDP source/sink
Diffstat (limited to 'gnuradio-core')
-rwxr-xr-xgnuradio-core/src/lib/io/gr_udp_sink.i5
-rwxr-xr-xgnuradio-core/src/lib/io/gr_udp_source.i4
2 files changed, 5 insertions, 4 deletions
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 ();