print_error("error on recv");
}
length = 0;
- printf("Received from %d addresses in one system call.\n", addr.addr->count);
for (int i=0; i<addr.addr->count; ++i) {
- struct in_addr aux;
- aux.s_addr = addr.addr->dests[i].addr;
- printf("Received from %s, %d bytes\n", inet_ntoa(aux), addr.addr->dests[i].bytes);
length += addr.addr->dests[i].bytes;
vec[i].iov_len = addr.addr->dests[i].bytes;
if (evbuffer_commit_space(evb[i], &vec[i], 1) < 0) {