gnuradio-core: allow swig to handle exceptions in UDP source/sink
authorJohnathan Corgan <jcorgan@corganenterprises.com>
Sat, 22 May 2010 00:23:06 +0000 (17:23 -0700)
committerJohnathan Corgan <jcorgan@corganenterprises.com>
Sat, 22 May 2010 00:23:06 +0000 (17:23 -0700)
gnuradio-core/src/lib/io/gr_udp_sink.i
gnuradio-core/src/lib/io/gr_udp_source.i

index fc8059f36c23cf0864aca3c74f3ec05af2f161e6..a71006ae03e9e47a200500f0339c0371d310c536 100755 (executable)
@@ -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 ();
index e1b23074de4d77e530c771a35c05cffaca98f742..2001f33e9cc8ec3cd2cc2a22fe7af7acbd71e412 100755 (executable)
@@ -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 ();