- tmp = make_message("%d", conf->port_arg);
- ret = getaddrinfo(conf->host_arg, tmp, NULL, &ai);
- free(tmp);
- if (ret) {
- ret = -E_ADDR_INFO;
- goto err_out;
- }
- ret = dccp_set_socket(pdd->fd);
- if (ret < 0)
- goto err_out;
- PARA_NOTICE_LOG("connecting to %s:%d\n", conf->host_arg, conf->port_arg);
- ret = connect(pdd->fd, ai->ai_addr, ai->ai_addrlen);
- freeaddrinfo(ai);
- if (ret < 0) {
- ret = -E_DCCP_CONNECT;
- goto err_out;
- }
- mark_fd_nonblock(pdd->fd);
+ rn->buf = para_calloc(DCCP_BUFSIZE);
+ rn->private_data = pdd = para_calloc(sizeof(struct private_dccp_recv_data));
+
+ pdd->fd = ret;
+ mark_fd_nonblocking(pdd->fd);