+enum data_connection_state {
+ DATA_CONNECTION_STATE_RECEIVE_HEADER = 0,
+ DATA_CONNECTION_STATE_RECEIVE_PAYLOAD = 1,
+};
+
+enum ctrl_connection_state {
+ CTRL_CONNECTION_STATE_RECEIVE_HEADER = 0,
+ CTRL_CONNECTION_STATE_RECEIVE_PAYLOAD = 1,
+};
+
+struct data_connection_state_receive_header {
+ uint64_t received, left_to_receive;
+ char header_reception_buffer[sizeof(struct lttcomm_relayd_data_hdr)];
+};
+
+struct data_connection_state_receive_payload {
+ uint64_t received, left_to_receive;
+ struct lttcomm_relayd_data_hdr header;
+ bool rotate_index;
+};
+
+struct ctrl_connection_state_receive_header {
+ uint64_t received, left_to_receive;
+};
+
+struct ctrl_connection_state_receive_payload {
+ uint64_t received, left_to_receive;
+ struct lttcomm_relayd_hdr header;
+};
+