functionsendP
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica_DeviceDrivers.Communication.TCPIPServer | tcpipserver | ||
| Modelica_DeviceDrivers.Packaging.SerialPackager | pkg | ||
| Integer | dataSize | Size of data to be sent in byte | |
| Integer | clientIndex | Index of the TCP/IP client |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | dataSent | On success, return the number of bytes sent, 0 if operation would block, -1 on non-fatal error |