aboutsummaryrefslogtreecommitdiff
path: root/src/rps/gnunet-service-rps_peers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rps/gnunet-service-rps_peers.c')
-rw-r--r--src/rps/gnunet-service-rps_peers.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/rps/gnunet-service-rps_peers.c b/src/rps/gnunet-service-rps_peers.c
index 2b5f39857..7c9f5ecd9 100644
--- a/src/rps/gnunet-service-rps_peers.c
+++ b/src/rps/gnunet-service-rps_peers.c
@@ -174,7 +174,7 @@ struct PeerContext
174 * Identity of the peer 174 * Identity of the peer
175 */ 175 */
176 struct GNUNET_PeerIdentity peer_id; 176 struct GNUNET_PeerIdentity peer_id;
177 177
178 /** 178 /**
179 * Flags indicating status of peer 179 * Flags indicating status of peer
180 */ 180 */
@@ -506,7 +506,7 @@ get_channel (const struct GNUNET_PeerIdentity *peer)
506 GNUNET_CADET_channel_create (cadet_handle, 506 GNUNET_CADET_channel_create (cadet_handle,
507 peer_ctx->send_channel_flags, /* context */ 507 peer_ctx->send_channel_flags, /* context */
508 peer, 508 peer,
509 GNUNET_RPS_CADET_PORT, 509 GC_u2h (GNUNET_RPS_CADET_PORT),
510 GNUNET_CADET_OPTION_RELIABLE); 510 GNUNET_CADET_OPTION_RELIABLE);
511 } 511 }
512 GNUNET_assert (NULL != peer_ctx->send_channel); 512 GNUNET_assert (NULL != peer_ctx->send_channel);
@@ -518,7 +518,7 @@ get_channel (const struct GNUNET_PeerIdentity *peer)
518 * 518 *
519 * If we already have a message queue open to this client, 519 * If we already have a message queue open to this client,
520 * simply return it, otherways create one. 520 * simply return it, otherways create one.
521 * 521 *
522 * @param peer the peer to get the mq to 522 * @param peer the peer to get the mq to
523 * @return the #GNUNET_MQ_Handle 523 * @return the #GNUNET_MQ_Handle
524 */ 524 */
@@ -1086,7 +1086,7 @@ Peers_clean_peer (const struct GNUNET_PeerIdentity *peer)
1086 1086
1087 // TODO actually remove unnecessary data 1087 // TODO actually remove unnecessary data
1088 1088
1089 if (GNUNET_NO == GNUNET_CONTAINER_multipeermap_contains (peer_map, peer)) 1089 if (GNUNET_NO == GNUNET_CONTAINER_multipeermap_contains (peer_map, peer))
1090 { 1090 {
1091 return GNUNET_NO; 1091 return GNUNET_NO;
1092 } 1092 }
@@ -1104,7 +1104,7 @@ Peers_clean_peer (const struct GNUNET_PeerIdentity *peer)
1104 1104
1105/** 1105/**
1106 * @brief Remove peer 1106 * @brief Remove peer
1107 * 1107 *
1108 * @param peer the peer to clean 1108 * @param peer the peer to clean
1109 * @return #GNUNET_YES if peer was removed 1109 * @return #GNUNET_YES if peer was removed
1110 * #GNUNET_NO otherwise 1110 * #GNUNET_NO otherwise
@@ -1114,7 +1114,7 @@ Peers_remove_peer (const struct GNUNET_PeerIdentity *peer)
1114{ 1114{
1115 struct PeerContext *peer_ctx; 1115 struct PeerContext *peer_ctx;
1116 1116
1117 if (GNUNET_NO == GNUNET_CONTAINER_multipeermap_contains (peer_map, peer)) 1117 if (GNUNET_NO == GNUNET_CONTAINER_multipeermap_contains (peer_map, peer))
1118 { 1118 {
1119 return GNUNET_NO; 1119 return GNUNET_NO;
1120 } 1120 }
@@ -1350,7 +1350,7 @@ void *
1350Peers_handle_inbound_channel (void *cls, 1350Peers_handle_inbound_channel (void *cls,
1351 struct GNUNET_CADET_Channel *channel, 1351 struct GNUNET_CADET_Channel *channel,
1352 const struct GNUNET_PeerIdentity *initiator, 1352 const struct GNUNET_PeerIdentity *initiator,
1353 uint32_t port, 1353 const struct GNUNET_HashCode *port,
1354 enum GNUNET_CADET_ChannelOption options) 1354 enum GNUNET_CADET_ChannelOption options)
1355{ 1355{
1356 struct PeerContext *peer_ctx; 1356 struct PeerContext *peer_ctx;