modelica-3rdparty / Modelica_DeviceDrivers

Free library for interfacing hardware drivers to Modelica models. There is support for joysticks, keyboards, UDP, TCP/IP, LCM, MQTT, shared memory, AD/DA converters, serial port and other devices.
BSD 3-Clause "New" or "Revised" License
77 stars 31 forks source link

MDD_TCPIPServer_Send() return value not set correctly #323

Closed bernhard-thiele closed 4 years ago

bernhard-thiele commented 4 years ago

From the MDD_TCPIPServer_Send() documentation:

On success, return the number of bytes sent, 0 if operation would block, -1 on non-fatal error.

However, on success MDD_TCPIPServer_Send() instead returns -1 (both Linux and Windows).