blockTCPIPServerSend

A block for sending TCP/IP packets to a client that connected to our server.

Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices), Modelica_DeviceDrivers.Utilities.Icons.TCPIPconnection (Base icon for models of network connections), Modelica_DeviceDrivers.Blocks.Communication.Internal.PartialSampleTrigger (Common code for triggering calls to external I/O devices).

Information

Supports sending of TCP/IP packets to a client that connected to our server.

Parameters

TypeNameDefaultDescription
Activation
BooleanenableExternalTrigger (from PartialSampleTrigger)falsetrue, enable external trigger input signal, otherwise use sample time settings below
SI.PeriodsampleTime (from PartialSampleTrigger)0.1Sample period of component
SI.TimestartTime (from PartialSampleTrigger)0First sample time instant
Outgoing data
IntegerclientIndex1Index of the TCP/IP client
BooleanautoBufferSizetruetrue, buffer size is deduced automatically, otherwise set it manually.
IntegeruserBufferSize16*1024Buffer size of message data in bytes (if not deduced automatically).
Advanced
BooleanblockUntilConnectedfalse=true, block initialization until client connected

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanInputtrigger (from PartialSampleTrigger)
Modelica_DeviceDrivers.Blocks.Interfaces.PackageInpkgIn

Components

TypeNameDefaultDescription
IntegerdataSent
BooleanacceptedIndicates whether a client at `clientIndex` has been accepted