- from_addrstr = address2str(e->from.address);
- to_addrstr = address2str(e->to.address);
- x = send_request(c, "%d %s %s %hd %s %s %hd %lx %d", ADD_EDGE,
- e->from.node->name, from_addrstr, e->from.port,
- e->to.node->name, to_addrstr, e->to.port,
+ sockaddr2str(&e->from.tcpaddress, &from_tcpaddress, &from_tcpport);
+ sockaddr2str(&e->from.udpaddress, &from_udpaddress, &from_udpport);
+ sockaddr2str(&e->to.tcpaddress, &to_tcpaddress, &to_tcpport);
+ sockaddr2str(&e->to.udpaddress, &to_udpaddress, &to_udpport);
+ x = send_request(c, "%d %s %s %s %s %s %s %s %s %lx %d", ADD_EDGE,
+ e->from.node->name, from_tcpaddress, from_tcpport, from_udpport,
+ e->to.node->name, to_tcpaddress, to_tcpport, to_udpport,