functionconstructor

Creates a UDPSocket instance with a given listening port.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

TypeNameDefaultDescription
Integerport0 if a sending socket, otherwise the number of the listening port
IntegerbufferSize16*1024Size of receive buffer, can be safely set to 0 for a sending socket
BooleanuseRecvThreadtruetrue, dedicated receiving thread writes datagrams into shared buffer

Outputs

TypeNameDefaultDescription
UDPSocketsocket