Update io engine comments
[fio.git] / engines / net.c
index 2e136f3dc104007522f67142deafdad3eee12925..51bc671fc3a1ba23a0e60ce91f80cc375db0990d 100644 (file)
@@ -1,5 +1,8 @@
 /*
- * Transfer data over the net.
+ * net engine
+ *
+ * IO engine that reads/writes to/from sockets.
+ *
  */
 #include <stdio.h>
 #include <stdlib.h>
@@ -223,8 +226,9 @@ static int fio_netio_init(struct thread_data *td)
        unsigned short port;
        struct fio_file *f;
        char host[64], buf[128];
+       unsigned int i;
        char *sep;
-       int ret, i;
+       int ret;
 
        if (!td->total_file_size) {
                log_err("fio: need size= set\n");
@@ -238,9 +242,9 @@ static int fio_netio_init(struct thread_data *td)
 
        strcpy(buf, td->filename);
 
-       sep = strchr(buf, ':');
+       sep = strchr(buf, '/');
        if (!sep) {
-               log_err("fio: bad network host:port <<%s>>\n", td->filename);
+               log_err("fio: bad network host/port <<%s>>\n", td->filename);
                return 1;
        }