Extended mbus_recv_frame() error codes, improved collision handling
- handling TCP connection reset and read(2) timeout
This commit is contained in:
9
mbus/mbus-protocol-aux.h
Normal file → Executable file
9
mbus/mbus-protocol-aux.h
Normal file → Executable file
@ -179,6 +179,15 @@ int mbus_disconnect(mbus_handle * handle);
|
||||
int mbus_recv_frame(mbus_handle * handle, mbus_frame *frame);
|
||||
|
||||
/**
|
||||
* Used for handling collisions. Blocks as long as receiving frames or corrupted data.
|
||||
*
|
||||
* @param handle Initialized handle
|
||||
*
|
||||
* @return Zero when nothing received, one otherwise.
|
||||
*/
|
||||
int mbus_recv_frame_dummy(mbus_handle * handle);
|
||||
|
||||
/**
|
||||
* Sends frame using "unified" handle
|
||||
*
|
||||
* @param handle Initialized handle
|
||||
|
Reference in New Issue
Block a user