Deprecated function. Don't use it.
Kept for backward compatibility. Only very limited use since due to thread parallelism (the listening UDP socket is run in a dedicated thread) the returned value may already be outdated when it is returned or when a later conditional action is based on the returned value.
encapsulated function getReceivedBytes import Modelica; extends Modelica.Icons.Function; extends Modelica.Icons.ObsoleteModel; import Modelica_DeviceDrivers.Communication.UDPSocket; input UDPSocket socket; output Integer receivedBytes "number of Bytes received"; end getReceivedBytes;