LCOV - code coverage report
Current view: top level - adcore/commopts - sock_comm_opt.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 2 2
Test Date: 2026-07-28 10:54:24 Functions: 100.0 % 3 3

            Line data    Source code
       1              : /**
       2              :  * Copyright (c) 2025 Huawei Technologies Co., Ltd.
       3              :  * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
       4              :  * CANN Open Software License Agreement Version 2.0 (the "License").
       5              :  * Please refer to the License for details. You may not use this file except in compliance with the License.
       6              :  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
       7              :  * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
       8              :  * See LICENSE in the root of the software repository for the full text of the License.
       9              :  */
      10              : 
      11              : #ifndef ADX_SOCK_COMMOPT_H
      12              : #define ADX_SOCK_COMMOPT_H
      13              : #include "adx_comm_opt.h"
      14              : namespace Adx {
      15              : class SockCommOpt : public AdxCommOpt {
      16              : public:
      17            3 :     SockCommOpt() {}
      18            6 :     ~SockCommOpt() override {}
      19              :     std::string CommOptName() override;
      20              :     OptType GetOptType() override;
      21              :     OptHandle OpenServer(const std::map<std::string, std::string> &info) override;
      22              :     int32_t CloseServer(const OptHandle &handle) const override;
      23              :     OptHandle OpenClient(const std::map<std::string, std::string> &info) override;
      24              :     int32_t CloseClient(OptHandle &handle) const override;
      25              :     OptHandle Accept(const OptHandle handle) const override;
      26              :     OptHandle Connect(const OptHandle handle, const std::map<std::string, std::string> &info) override;
      27              :     int32_t Close(OptHandle &handle) const override;
      28              :     int32_t Write(const  OptHandle handle, IdeSendBuffT buffer, int32_t length, int32_t flag) override;
      29              :     int32_t Read(const OptHandle handle, IdeRecvBuffT buffer, int32_t &length, int32_t flag) override;
      30              :     SharedPtr<AdxDevice> GetDevice() override;
      31              :     void Timer(void) const override;
      32              : };
      33              : }
      34              : #endif
        

Generated by: LCOV version 2.0-1