4 #include <sys/socket.h>
6 #include <netinet/in.h>
12 struct flist_head list;
13 struct flist_head hash_list;
14 struct flist_head arg_list;
16 struct sockaddr_in addr;
17 struct sockaddr_in6 addr6;
18 struct sockaddr_un addr_un;
36 struct flist_head eta_list;
37 struct client_eta *eta_in_flight;
39 struct flist_head cmd_list;
45 typedef void (*client_text_op_func)(struct fio_client *client,
46 FILE *f, __u16 pdu_len, const char *buf);
48 typedef void (*client_disk_util_op_func)(struct fio_client *client, struct fio_net_cmd *cmd);
50 typedef void (*client_thread_status_op)(struct fio_net_cmd *cmd);
52 typedef void (*client_group_stats_op)(struct fio_net_cmd *cmd);
54 typedef void (*client_eta_op)(struct fio_client *client, struct fio_net_cmd *cmd);
56 typedef void (*client_probe_op)(struct fio_client *client, struct fio_net_cmd *cmd);
58 typedef void (*client_thread_status_display_op)(char *status_message, double perc);
61 client_text_op_func text_op;
62 client_disk_util_op_func disk_util;
63 client_thread_status_op thread_status;
64 client_group_stats_op group_stats;
66 client_probe_op probe;
67 client_thread_status_display_op thread_status_display;
70 extern struct client_ops fio_client_ops;