stephane / libmodbus

A Modbus library for Linux, Mac OS, FreeBSD and Windows
http://libmodbus.org
GNU Lesser General Public License v2.1
3.44k stars 1.75k forks source link

Propose modbus_closesocket() #99

Closed don-pit closed 11 years ago

don-pit commented 11 years ago

To close socket in posix one must use close(). In win32 one must use closesocket(). This difference could be wrapped into function called e.g. modbus_closesocket().

stephane commented 11 years ago

Yes but I think it's not in the libmodbus scope to provide such wrapper (glib is the right place to do that for example).