functionconstructor
Creates a UDPSocket instance with a given listening port.
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | port | 0 if a sending socket, otherwise the number of the listening port | |
| Integer | bufferSize | 16*1024 | Size of receive buffer, can be safely set to 0 for a sending socket |
| Boolean | useRecvThread | true | true, dedicated receiving thread writes datagrams into shared buffer |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| UDPSocket | socket |