3 ###################################################
4 ##TCP Source: Custom blks2 block
5 ###################################################
8 <name>TCP Source</name>
9 <key>blks2_tcp_source</key>
10 <import>from grc_gnuradio import blks2 as grc_blks2</import>
11 <make>grc_blks2.tcp_source(
12 itemsize=$type.size*$vlen,
18 <name>Output Type</name>
24 <opt>size:gr.sizeof_gr_complex</opt>
29 <opt>size:gr.sizeof_float</opt>
34 <opt>size:gr.sizeof_int</opt>
39 <opt>size:gr.sizeof_short</opt>
44 <opt>size:gr.sizeof_char</opt>
50 <value>127.0.0.1</value>
74 <name>Vec Length</name>
79 <check>$vlen > 0</check>
86 In client mode, we attempt to connect to a server at the given address and port. \
87 In server mode, we bind a socket to the given address and port and accept the first client.