📄 tracekit.h
字号:
/* This file is part of GNUnet. (C) 2001, 2002, 2003, 2004, 2006 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.*//** * @file applications/tracekit/tracekit.h * @author Christian Grothoff */#ifndef TRACEKIT_H#define TRACEKIT_H#include "gnunet_core.h"typedef struct{ GNUNET_MessageHeader header; /** * When was this probe started? (NBO) */ GNUNET_Int32Time timestamp; /** * How many more hops should this probe go (NBO) */ unsigned int hopsToGo; /** * How important is the probe for the sender? (NBO) */ unsigned int priority; /** * Internal client id of the sender. */ unsigned int clientId; /** * Which peer is the ultimate receiver of this * information? */ GNUNET_PeerIdentity initiatorId;} P2P_tracekit_probe_MESSAGE;typedef struct{ GNUNET_MessageHeader header; /** * Which peer is the ultimate receiver of this * information? */ GNUNET_PeerIdentity initiatorId; /** * Which peer is the ultimate responder responsible * for sending this reply? */ GNUNET_PeerIdentity responderId; /** * At what time was the initator sending the * request? */ GNUNET_Int32Time initiatorTimestamp; /** * Internal client Id of the sender. */ unsigned int clientId;} P2P_tracekit_reply_MESSAGE;typedef struct{ GNUNET_MessageHeader header; /** * How many more hops should this probe go (NBO) */ unsigned int hops; /** * How important is the probe for the sender? (NBO) */ unsigned int priority;} CS_tracekit_probe_MESSAGE;typedef struct{ GNUNET_MessageHeader header; /** * Which peer is the ultimate responder responsible * for sending this reply? */ GNUNET_PeerIdentity responderId;} CS_tracekit_reply_MESSAGE;#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -