TCP Source blks2_tcp_source from grc_gnuradio import blks2 as grc_blks2 grc_blks2.tcp_source( itemsize=$type.size*$vlen, addr=$addr, port=$port, server=$server, ) Output Type type enum Address addr 127.0.0.1 string Port port 0 int Mode server True enum Vec Length vlen 1 int $vlen > 0 out $type $vlen In client mode, we attempt to connect to a server at the given address and port. \ In server mode, we bind a socket to the given address and port and accept the first client.