Revision 4136911a loop-mt.c

View differences:

loop-mt.c
40 40
    struct nodeID *remote;
41 41
  static uint8_t buff[BUFFSIZE];
42 42

  
43
    len = recv_data(s, &remote, buff, BUFFSIZE);
43
    len = recv_from_peer(s, &remote, buff, BUFFSIZE);
44 44
    switch (buff[0] /* Message Type */) {
45 45
      case MSG_TYPE_TOPOLOGY:
46 46
        pthread_mutex_lock(&topology_mutex);
......
66 66
    struct nodeID *remote;
67 67
  static uint8_t buff[BUFFSIZE];
68 68

  
69
    len = recv_data(s, &remote, buff, BUFFSIZE);
69
    len = recv_from_peer(s, &remote, buff, BUFFSIZE);
70 70
    switch (buff[0] /* Message Type */) {
71 71
      case MSG_TYPE_TOPOLOGY:
72 72
        pthread_mutex_lock(&topology_mutex);

Also available in: Unified diff