Skip to content

libmodbus 3.1.12 does not connect in windows #842

@hdabis1234

Description

@hdabis1234

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions