* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss 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.
* -------------------------------------------------------------------------
*
* sctp_message.h
*
* IDENTIFICATION
* src/gausskernel/cbb/communication/sctp_utils/sctp_message.h
*
* -------------------------------------------------------------------------
*/
#ifndef _UTILS_MESSAGE_H_
#define _UTILS_MESSAGE_H_
#include "libcomm.h"
#define NAMEDATALEN 64
typedef enum {
CTRL_UNKNOWN,
CTRL_CONN_REGIST,
CTRL_CONN_REGIST_CN,
CTRL_CONN_REJECT,
CTRL_CONN_DUAL,
CTRL_CONN_CANCEL,
CTRL_CONN_REQUEST,
CTRL_CONN_ACCEPT,
CTRL_ADD_QUOTA,
CTRL_CLOSED,
CTRL_PEER_TID,
CTRL_ASSERT_FAIL,
CTRL_PEER_CHANGED,
CTRL_STOP_QUERY,
#ifdef USE_SPQ
CTRL_QE_BACKWARD,
CTRL_BACKWARD_REGIST,
#endif
CTRL_MAX_TYPE
} CtrlMsgType;
typedef enum {
MAIL_UNKNOWN,
MAIL_READY,
MAIL_RUN,
MAIL_HOLD,
MAIL_CLOSED,
MAIL_TO_CLOSE,
MAIL_MAX_TYPE
} SctpMailboxStatus;
struct FCMSG_T {
uint16 type;
uint16 node_idx;
uint16 streamid;
uint16 version;
TcpStreamKey stream_key;
uint64 query_id;
long streamcap;
unsigned long extra_info;
char nodename[NAMEDATALEN];
};
#endif