summaryrefslogtreecommitdiff
path: root/gr-blocks/python/grc_gnuradio/blks2/tcp.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/python/grc_gnuradio/blks2/tcp.py')
-rw-r--r--gr-blocks/python/grc_gnuradio/blks2/tcp.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gr-blocks/python/grc_gnuradio/blks2/tcp.py b/gr-blocks/python/grc_gnuradio/blks2/tcp.py
index aee90fad2c..6ae24d3a7b 100644
--- a/gr-blocks/python/grc_gnuradio/blks2/tcp.py
+++ b/gr-blocks/python/grc_gnuradio/blks2/tcp.py
@@ -58,6 +58,8 @@ class tcp_source(gr.hier_block2):
fd = _get_sock_fd(addr, port, server)
self.connect(blocks.file_descriptor_source(itemsize, fd), self)
+ print "Warning: the blks2.tcp_source block is deprecated."
+
class tcp_sink(gr.hier_block2):
def __init__(self, itemsize, addr, port, server=False):
#init hier block
@@ -68,3 +70,5 @@ class tcp_sink(gr.hier_block2):
)
fd = _get_sock_fd(addr, port, server)
self.connect(self, blocks.file_descriptor_sink(itemsize, fd))
+
+ print "Warning: the blks2.tcp_sink block is deprecated."