Il 22/03/2013 18:41, Kevin Wolf ha scritto: > + > + if (qdict_haskey(options, "path")) { > + s->is_unix = true; > + } else if (qdict_haskey(options, "host")) { > + s->is_unix = false; > + } else { > + return -EINVAL; > } > - return err; > + > + s->socket_opts = qemu_opts_create_nofail(&socket_optslist); > + > + qemu_opts_absorb_qdict(s->socket_opts, options, &local_err);
Similarly, this should create a SocketAddress and then just use socket_connect. Paolo