WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
-
+
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
GNUNET_NETWORK_STRUCT_BEGIN
/***********************************************************************
- * P2P Messages
+* P2P Messages
***********************************************************************/
/**
* P2P Message to send PeerIDs to other peer.
*/
-struct GNUNET_RPS_P2P_PullReplyMessage
-{
+struct GNUNET_RPS_P2P_PullReplyMessage {
/**
* Header including size and type in NBO
*/
/***********************************************************************
- * Client-Service Messages
+* Client-Service Messages
***********************************************************************/
/**
* Message from client to service with seed of peers.
*/
-struct GNUNET_RPS_CS_SeedMessage
-{
+struct GNUNET_RPS_CS_SeedMessage {
/**
* Header including size and type in NBO
*/
/**
* Message from client to service to turn service malicious.
*/
-struct GNUNET_RPS_CS_ActMaliciousMessage
-{
+struct GNUNET_RPS_CS_ActMaliciousMessage {
/**
* Header including size and type in NBO
*/
/**
* Message from client to service telling it to start a new sub
*/
-struct GNUNET_RPS_CS_SubStartMessage
-{
+struct GNUNET_RPS_CS_SubStartMessage {
/**
* Header including size and type in NBO
*/
/**
* Message from client to service telling it to stop a new sub
*/
-struct GNUNET_RPS_CS_SubStopMessage
-{
+struct GNUNET_RPS_CS_SubStopMessage {
/**
* Header including size and type in NBO
*/
* Message from client to service indicating that
* clients wants to get updates of the view
*/
-struct GNUNET_RPS_CS_DEBUG_ViewRequest
-{
+struct GNUNET_RPS_CS_DEBUG_ViewRequest {
/**
* Header including size and type in NBO
*/
/**
* Message from service to client containing current update of view
*/
-struct GNUNET_RPS_CS_DEBUG_ViewReply
-{
+struct GNUNET_RPS_CS_DEBUG_ViewReply {
/**
* Header including size and type in NBO
*/
*/
uint64_t num_peers GNUNET_PACKED;
};
- /* Followed by num_peers * GNUNET_PeerIdentity */
+/* Followed by num_peers * GNUNET_PeerIdentity */
/**
* Message from client to service indicating that
* clients wants to get stream of biased peers
*/
-struct GNUNET_RPS_CS_DEBUG_StreamRequest
-{
+struct GNUNET_RPS_CS_DEBUG_StreamRequest {
/**
* Header including size and type in NBO
*/
/**
* Message from service to client containing peer from biased stream
*/
-struct GNUNET_RPS_CS_DEBUG_StreamReply
-{
+struct GNUNET_RPS_CS_DEBUG_StreamReply {
/**
* Header including size and type in NBO
*/
GNUNET_NETWORK_STRUCT_END
/***********************************************************************
- * Defines from old gnunet-service-rps_peers.h
+* Defines from old gnunet-service-rps_peers.h
***********************************************************************/
/**
* Different flags indicating the status of another peer.
*/
-enum Peers_PeerFlags
-{
+enum Peers_PeerFlags {
/**
* If we are waiting for a reply from that peer (sent a pull request).
*/
* This is needed in order to know what to do with a channel when it's
* destroyed.
*/
-enum Peers_ChannelFlags
-{
+enum Peers_ChannelFlags {
/**
* We destroyed the channel because the other peer established a second one.
*/
/**
* @brief The role of a channel. Sending or receiving.
*/
-enum Peers_ChannelRole
-{
+enum Peers_ChannelRole {
/**
* Channel is used for sending
*/