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
| Type | Name | Default | Description |
|---|---|---|---|
| Activation | |||
| Boolean | enableExternalTrigger (from PartialSampleTrigger) | false | true, enable external trigger input signal, otherwise use sample time settings below |
| SI.Period | sampleTime (from PartialSampleTrigger) | 0.1 | Sample period of component |
| SI.Time | startTime (from PartialSampleTrigger) | 0 | First sample time instant |
| Outgoing data | |||
| Integer | clientIndex | 1 | Index of the TCP/IP client |
| Boolean | autoBufferSize | true | true, buffer size is deduced automatically, otherwise set it manually. |
| Integer | userBufferSize | 16*1024 | Buffer size of message data in bytes (if not deduced automatically). |
| Advanced | |||
| Boolean | blockUntilConnected | false | =true, block initialization until client connected |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.BooleanInput | trigger (from PartialSampleTrigger) | ||
| Modelica_DeviceDrivers.Blocks.Interfaces.PackageIn | pkgIn |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | dataSent | ||
| Boolean | accepted | Indicates whether a client at `clientIndex` has been accepted |