TCP Sourceblks2_tcp_sourcefrom grc_gnuradio import blks2 as grc_blks2grc_blks2.tcp_source(
itemsize=$type.size*$vlen,
addr=$addr,
port=$port,
server=$server,
)Output TypetypeenumAddressaddr127.0.0.1stringPortport0intModeserverTrueenumVec Lengthvlen1int$vlen > 0
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.