[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34965 - gnunet/src/ats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34965 - gnunet/src/ats |
Date: |
Thu, 22 Jan 2015 22:49:42 +0100 |
Author: grothoff
Date: 2015-01-22 22:49:42 +0100 (Thu, 22 Jan 2015)
New Revision: 34965
Modified:
gnunet/src/ats/ats.h
gnunet/src/ats/ats_api_scheduling.c
Log:
-documenting
Modified: gnunet/src/ats/ats.h
===================================================================
--- gnunet/src/ats/ats.h 2015-01-22 21:43:13 UTC (rev 34964)
+++ gnunet/src/ats/ats.h 2015-01-22 21:49:42 UTC (rev 34965)
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- (C) 2010,2011 Christian Grothoff (and other contributing authors)
+ (C) 2010-2015 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
@@ -35,18 +35,36 @@
enum StartFlag
{
+ /**
+ * This is a scheduling client (aka transport service)
+ */
START_FLAG_SCHEDULING = 0,
+ /**
+ * Performance monitoring client that wants to learn about
+ * changes in performance characteristics.
+ */
START_FLAG_PERFORMANCE_WITH_PIC = 1,
+ /**
+ * Performance monitoring client that does NOT want to learn
+ * about changes in performance characteristics.
+ */
START_FLAG_PERFORMANCE_NO_PIC = 2
};
GNUNET_NETWORK_STRUCT_BEGIN
+/**
+ * First message any client sends to ATS, used to self-identify
+ * (what type of client this is).
+ */
struct ClientStartMessage
{
+ /**
+ * Type is #GNUNET_MESSAGE_TYPE_ATS_START.
+ */
struct GNUNET_MessageHeader header;
/**
@@ -56,21 +74,50 @@
};
+/**
+ * Scheduling client to ATS service: we would like to have
+ * address suggestions for this peer.
+ */
struct RequestAddressMessage
{
+ /**
+ * Type is #GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS or
+ * #GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS_CANCEL to stop
+ * suggestions.
+ */
struct GNUNET_MessageHeader header;
+ /**
+ * Always zero.
+ */
uint32_t reserved GNUNET_PACKED;
+ /**
+ * Peer to get address suggestions for.
+ */
struct GNUNET_PeerIdentity peer;
};
+
+/**
+ * Scheduling client to ATS service: reset backoff for
+ * address suggestions to this peer.
+ */
struct ResetBackoffMessage
{
+ /**
+ * Type is #GNUNET_MESSAGE_TYPE_ATS_RESET_BACKOFF.
+ */
struct GNUNET_MessageHeader header;
+ /**
+ * Always zero.
+ */
uint32_t reserved GNUNET_PACKED;
+ /**
+ * Peer to reset backoff for.
+ */
struct GNUNET_PeerIdentity peer;
};
@@ -257,6 +304,8 @@
};
+
+
struct PeerInformationMessage
{
struct GNUNET_MessageHeader header;
Modified: gnunet/src/ats/ats_api_scheduling.c
===================================================================
--- gnunet/src/ats/ats_api_scheduling.c 2015-01-22 21:43:13 UTC (rev 34964)
+++ gnunet/src/ats/ats_api_scheduling.c 2015-01-22 21:49:42 UTC (rev 34965)
@@ -1023,7 +1023,7 @@
/**
* We would like to reset the address suggestion block time for this
- * peer
+ * peer.
*
* @param sh handle
* @param peer identity of the peer we want to reset
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34965 - gnunet/src/ats,
gnunet <=