Calling modbus_connect() in windows returns -1.
Reason is the following in modbus-tcp.c -> if (ctx->s >= FD_SETSIZE) {
In windows socket() returns an arbitrary number 1100, 1200 etc, however FD_SETSIZE is defined as 64 hence the failure.
What should I do about this?
Thanks
Homam
Calling modbus_connect() in windows returns -1.
Reason is the following in modbus-tcp.c -> if (ctx->s >= FD_SETSIZE) {
In windows socket() returns an arbitrary number 1100, 1200 etc, however FD_SETSIZE is defined as 64 hence the failure.
What should I do about this?
Thanks
Homam