TCP Sinkblks2_tcp_sinkfrom grc_gnuradio import blks2 as grc_blks2grc_blks2.tcp_sink(
itemsize=$type.size*$vlen,
addr=$addr,
port=$port,
server=$server,
)Input TypetypeenumAddressaddr127.0.0.1stringPortport0intModeserverFalseenumVec Lengthvlen1int$vlen > 0in$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.