14 #if defined(_WIN32) && !defined(__CYGWIN__) 17 #if !defined(ECONNRESET) 18 #define ECONNRESET WSAECONNRESET 20 #if !defined(ECONNREFUSED) 21 #define ECONNREFUSED WSAECONNREFUSED 23 #if !defined(ETIMEDOUT) 24 #define ETIMEDOUT WSAETIMEDOUT 26 #if !defined(ENOPROTOOPT) 27 #define ENOPROTOOPT WSAENOPROTOOPT 29 #if !defined(EINPROGRESS) 30 #define EINPROGRESS WSAEINPROGRESS 34 #define MODBUS_TCP_DEFAULT_PORT 502 35 #define MODBUS_TCP_SLAVE 0xFF 40 #define MODBUS_TCP_MAX_ADU_LENGTH 260 MODBUS_API int modbus_tcp_listen(modbus_t *ctx, int nb_connection)
#define MODBUS_BEGIN_DECLS
MODBUS_API int modbus_tcp_accept(modbus_t *ctx, int *s)
MODBUS_API modbus_t * modbus_new_tcp(const char *ip_address, int port)
MODBUS_API int modbus_tcp_pi_listen(modbus_t *ctx, int nb_connection)
MODBUS_API int modbus_tcp_pi_accept(modbus_t *ctx, int *s)
MODBUS_API modbus_t * modbus_new_tcp_pi(const char *node, const char *service)