Signed-off-by: Jens Axboe <axboe@kernel.dk>
{
struct netio_data *nd = td->io_ops->data;
{
struct netio_data *nd = td->io_ops->data;
+ if (!host) {
+ log_err("fio: connect with no host to connect to.\n");
+ if (td_read(td))
+ log_err("fio: did you forget to set 'listen'?\n");
+
+ td_verror(td, EINVAL, "no hostname= set");
+ return 1;
+ }
+
nd->addr.sin_family = AF_INET;
nd->addr.sin_port = htons(port);
nd->addr.sin_family = AF_INET;
nd->addr.sin_port = htons(port);