blockTCPIPServerReceive

A block for receiving TCP/IP packets stemming from 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 receiving of TCP/IP packets stemming from 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
Incoming 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
BooleanshowAdvancedOutputsfalse=true, if advanced output ports are visible

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanInputtrigger (from PartialSampleTrigger)
Modelica_DeviceDrivers.Blocks.Interfaces.PackageOutpkgOut
Modelica.Blocks.Interfaces.IntegerOutputnReceivedBytesNumber of received bytes
Modelica.Blocks.Interfaces.BooleanOutputrecvTriggerTriggers if new data was received

Components

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