Revision 8f446863

View differences:

include/net_helper.h
2 2
#define NET_HELPER_H
3 3

  
4 4
#include <sys/time.h>
5
#include <stdint.h>
6
#include <stdlib.h>
5 7

  
6 8
/**
7 9
* @file net_helper.h
src/Cache/ncast_proto.c
59 59

  
60 60
  dst = rand_peer(local_cache, NULL, 0);
61 61
  if (dst == NULL) {
62
    //fprintf(stderr,"[DEBUG] Megaerror, no peer selected for TOPO\n");
62 63
    return 0;
63 64
  }
64 65
  return topo_query_peer(context->context, local_cache, dst, MSG_TYPE_TOPOLOGY, NCAST_QUERY, 0);
src/Cache/topo_proto.c
101 101
  h->protocol = protocol;
102 102
  h->type = type;
103 103
  len = topo_payload_fill(context, context->pkt + shift, context->pkt_size - shift, local_cache, dst, max_peers, 1);
104
  //fprintf(stderr,"[DEBUG] sending TOPO to peer \n");
104 105
  return len > 0  ? send_to_peer(nodeid(context->myEntry, 0), dst, context->pkt, shift + len) : len;
105 106
}
106 107

  
src/PeerSampler/ncast.c
206 206
  }
207 207

  
208 208
  if (time_to_send(context)) {
209
    //fprintf(stderr,"[DEBUG] Time to send a TOPO message\n");
209 210
    int ret = INT_MIN;
210 211
    int i;
211 212
    int entries = cache_entries(context->local_cache);

Also available in: Unified diff