* This file is part of the oGRAC project.
* Copyright (c) 2024 Huawei Technologies Co.,Ltd.
*
* oGRAC is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
* -------------------------------------------------------------------------
*
* srv_lsnr.h
*
*
* IDENTIFICATION
* src/server/srv_lsnr.h
*
* -------------------------------------------------------------------------
*/
#ifndef __SRV_LSNR_H__
#define __SRV_LSNR_H__
#include "cm_defs.h"
#include "cm_thread.h"
#include "cs_tcp.h"
#include "cs_ipc.h"
#include "cs_pipe.h"
#include "cs_listener.h"
#include "cm_list.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct st_lsnr {
tcp_lsnr_t tcp_service;
tcp_lsnr_t tcp_replica;
ipc_lsnr_t ipc_service;
uds_lsnr_t uds_service;
} lsnr_t;
status_t srv_start_replica_lsnr(void);
status_t srv_start_lsnr(void);
void srv_stop_lsnr(lsnr_type_t type);
void srv_pause_lsnr(lsnr_type_t type);
void srv_resume_lsnr(lsnr_type_t type);
#ifdef __cplusplus
}
#endif
#endif