📄 statistics.h
字号:
/* This file is part of GNUnet. (C) 2001, 2002, 2003, 2004 Christian Grothoff (and other contributing authors) GNUnet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNUnet is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNUnet; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.*//** * @author Christian Grothoff * @file applications/stats/statistics.h */#ifndef CHAT_CHAT_H#define CHAT_CHAT_H#include "gnunet_util.h"/** * Statistics message. Contains the timestamp and an aribtrary * (bounded by the maximum CS message size!) number of statistical * numbers. If needed, several messages are used. */typedef struct{ GNUNET_MessageHeader header; /** * For 64-bit alignment... */ int reserved; /* timestamp (network byte order) */ GNUNET_CronTime startTime; /* total number of statistical counters */ int totalCounters; /* number of statistical counters in this message */ int statCounters;} CS_stats_reply_MESSAGE;/** * Generic version of CS_stats_reply_MESSAGE with field for finding the end * of the struct. Use the other version for allocation. */typedef struct{ CS_stats_reply_MESSAGE stats_cs_message; /* values[statCounters] */ unsigned long long values[1]; /* description for each of the values, separated by '\0'-terminators; the last description is also terminated by a '\0'; again statCounters entries */ /* char descriptions[0]; */} CS_stats_reply_MESSAGE_GENERIC;/** * Query protocol supported message. Contains the type of * the message we are requesting the status of. */typedef struct{ GNUNET_MessageHeader header; /** * The type of the message (XX_CS_PROTO_XXXX) * we want to know the status of. */ unsigned short type; /** * 0 for plaintext P2P, * 1 for ciphertext P2P, * 2 for either plaintext or ciphertext P2P, * 3 for client-server */ unsigned short handlerType;} CS_stats_get_supported_MESSAGE;#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -