made it possible to configure the TCP read timeout parameter

This commit is contained in:
Robert Johansson
2013-08-30 00:05:22 +09:00
parent 84ffacadff
commit fd5c9adffb
2 changed files with 34 additions and 8 deletions

View File

@ -23,7 +23,7 @@
#ifdef __cplusplus
extern "C" {
#endif
#endif
typedef struct _mbus_tcp_data
@ -32,11 +32,12 @@ typedef struct _mbus_tcp_data
uint16_t port;
} mbus_tcp_data;
int mbus_tcp_connect(mbus_handle *handle);
int mbus_tcp_disconnect(mbus_handle *handle);
int mbus_tcp_send_frame(mbus_handle *handle, mbus_frame *frame);
int mbus_tcp_recv_frame(mbus_handle *handle, mbus_frame *frame);
void mbus_tcp_data_free(mbus_handle *handle);
int mbus_tcp_connect(mbus_handle *handle);
int mbus_tcp_disconnect(mbus_handle *handle);
int mbus_tcp_send_frame(mbus_handle *handle, mbus_frame *frame);
int mbus_tcp_recv_frame(mbus_handle *handle, mbus_frame *frame);
void mbus_tcp_data_free(mbus_handle *handle);
int mbus_tcp_set_timeout_set(double seconds);
#ifdef __cplusplus
}