Creates a UDPSocket instance with a given listening port.
encapsulated function constructor import Modelica; extends Modelica.Icons.Function; import Modelica_DeviceDrivers.Communication.UDPSocket; input Integer port "0 if a sending socket, otherwise the number of the listening port"; input Integer bufferSize = 16*1024 "Size of receive buffer, can be safely set to 0 for a sending socket"; input Boolean useRecvThread = true "true, dedicated receiving thread writes datagrams into shared buffer"; output UDPSocket socket; end constructor;