session REFACTOR clarify server/client side when receiving hello
diff --git a/src/session.c b/src/session.c
index 8304a4d..6e6c43e 100644
--- a/src/session.c
+++ b/src/session.c
@@ -1354,8 +1354,14 @@
return ret;
}
+/**
+ * @brief Receive server hello message on the client.
+ *
+ * @param[in] session Client session to use.
+ * @return Received message type.
+ */
static NC_MSG_TYPE
-nc_recv_client_hello_io(struct nc_session *session)
+nc_client_recv_hello_io(struct nc_session *session)
{
struct ly_in *msg;
struct lyd_node *hello = NULL, *iter;
@@ -1437,8 +1443,14 @@
return rc;
}
+/**
+ * @brief Receive client hello message on the server.
+ *
+ * @param[in] session Server session to use.
+ * @return Received message type.
+ */
static NC_MSG_TYPE
-nc_recv_server_hello_io(struct nc_session *session)
+nc_server_recv_hello_io(struct nc_session *session)
{
struct ly_in *msg;
struct lyd_node *hello = NULL, *iter;
@@ -1515,9 +1527,9 @@
}
if (session->side == NC_CLIENT) {
- type = nc_recv_client_hello_io(session);
+ type = nc_client_recv_hello_io(session);
} else {
- type = nc_recv_server_hello_io(session);
+ type = nc_server_recv_hello_io(session);
}
return type;