diff --git a/utils/TcpModule/src/TcpModule.cpp b/utils/TcpModule/src/TcpModule.cpp index 59fd681c..8f38357f 100644 --- a/utils/TcpModule/src/TcpModule.cpp +++ b/utils/TcpModule/src/TcpModule.cpp @@ -21,6 +21,14 @@ #include #include #include +/** + * @brief Verify that object is a legitimate (existing) server. + * + * @param object Save the address of the character pointer variable. + * If the value of the character pointer pointed by *object is "tcp_server", return turn + * @return true Indicates that the server exists. + * @return false Indicates that the server does not exist + */ static bool TcpServerObjectCheck(void *object) { if (nullptr == object) { @@ -33,6 +41,14 @@ static bool TcpServerObjectCheck(void *object) } return true; } +/** + * @brief Verify that object is a legitimate (existing) client. + * + * @param object Save the address of the character pointer variable. + * If the value of the character pointer pointed by *object is "tcp_client", return turn + * @return true Indicates that the client exists. + * @return false Indicates that the client does not exist + */ static bool TcpClientObjectCheck(void *object) { if (nullptr == object) {