Revision c3d27400

View differences:

streamer.c
105 105
    return NULL;
106 106
  }
107 107
  free(my_addr);
108
  topInit(myID);
108
  topInit(myID, NULL, 0);
109 109

  
110 110
  output_init(outbuff_size);
111 111

  
......
132 132

  
133 133
      return -1;
134 134
    }
135
    topAddNeighbour(srv);
135
    topAddNeighbour(srv, NULL, 0);
136 136

  
137 137
    loop(my_sock, 1000000 / chunks_per_second, buff_size);
138 138
  }
topology.c
52 52
  if (from) {
53 53
    dprintf("from:%s, ",node_addr(from));
54 54
    if (peerset_check(pset, from) < 0) {
55
      topAddNeighbour(from);	//@TODO: this is agressive
55
      topAddNeighbour(from, NULL, 0);	//@TODO: this is agressive
56 56
      add_peer(from);
57 57
    }
58 58
  }
......
91 91
  if (!p) {
92 92
    fprintf(stderr,"warning: received message from unknown peer: %s!\n",node_addr(id));
93 93
    if (reg) {
94
      topAddNeighbour(id);	//@TODO: this is agressive
94
      topAddNeighbour(id, NULL, 0);	//@TODO: this is agressive
95 95
      add_peer(id);
96 96
      p = peerset_get_peer(pset,id);
97 97
    }

Also available in: Unified diff