From 660a2bfb0858f94633f9e567b81968981541f079 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 24 Oct 2011 09:35:06 +0200 Subject: [PATCH] server: document fio_server_parse_string() Signed-off-by: Jens Axboe --- server.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/server.c b/server.c index 6a5bc6ce..81ec6b0e 100644 --- a/server.c +++ b/server.c @@ -943,6 +943,18 @@ static int fio_init_server_connection(void) return sk; } +/* + * Parse a host/ip/port string. Reads from 'str'. + * + * Outputs: + * + * For IPv4: + * *ptr is the host, *port is the port, inp is the destination. + * For IPv6: + * *ptr is the host, *port is the port, inp6 is the dest, and *ipv6 is 1. + * For local domain sockets: + * *ptr is the filename, *is_sock is 1. + */ int fio_server_parse_string(const char *str, char **ptr, int *is_sock, int *port, struct in_addr *inp, struct in6_addr *inp6, int *ipv6) -- 2.25.1