TCP Source

From GNU Radio
Revision as of 01:49, 2 September 2023 by Duggabe (talk | contribs) (initial creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This block supports TCP connections in both server (listening for inbound connections) and client mode (initiating connections to other systems as a client). In client mode,the block connects to a server at the given address and port. In server mode, the block starts a local listener on the given port and accepts the first client connection.

This block does support IPv6 addresses. If an IPv6 address is detected as the destination IP address, the block will automatically adjust for proper connection. Just make sure your IPv6 stack is enabled. To listen in server mode for both IPv4 and IPv6, use :: as the address. To connect to IPv6 localhost use ::1 as the address. Added in 3.9

Parameters

(R): Run-time adjustable

Output Type
options: [complex, float, int, short, byte]
Address
default: 127.0.0.1
Port
default: 2000
Mode
options: [Server, Client]
Vector Length
default: 1

Example Flowgraph

This flowgraph can be found at [1]

Test tcp source fg.png

Source Files

C++ files
TODO
Header files
TODO
Public header files
TODO
Block definition
[2]