Main Content

TCP Send

Send data over TCP/IP network to remote host

Add-On Required: This feature requires the Simulink Coder Support Package for NXP FRDM-K64F Board add-on.

  • TCP Send block

Libraries:
Simulink Coder Support Package for NXP FRDM-K64F Board

Description

The TCP Send block sends data to a remote host or another hardware board over a wired network. You can set the Connection mode of the block to Server or Client. When you set Connection mode to Client, you must provide the Remote IP Address and the Remote IP Port of the server to which you want to send data. When you set Connection mode to Server, you must provide the Local IP Port. This Local IP Port acts as a listening port of the TCP/IP server.

Ports

Input

expand all

The block accepts data specified as an N-by-1 array. The block sends this data over a TCP/IP network to the receiving host.

Data Types: int8 | uint8 | int16 | uint16 | int32 | uint32 | single | double | Boolean

Parameters

expand all

Set the block as a TCP/IP server or client.

When you set this parameter to Server, you must provide a Local IP Port. The local port acts as the listening port of the TCP/IP server.

When you set this parameter to Client, you must provide the Remote IP Address and the Remote IP Port of the TCP/IP server to which you want to send the data.

Specify the remote IP address of the server to which the data is sent.

Dependencies

This parameter appears only when you set the Connection mode parameter to Client.

Specify the port number of the server to which data is sent.

Dependencies

This parameter appears only when you set the Connection mode parameter to Client.

Specify the port number of the application from which to send the data. This local port acts as the listening port of the sending host.

Version History

Introduced in R2017b

See Also