diff options
author | sethdelliott <devnull@localhost> | 2010-07-20 00:03:03 +0000 |
---|---|---|
committer | sethdelliott <devnull@localhost> | 2010-07-20 00:03:03 +0000 |
commit | 3118b42010e9b534f5e32ec7e9dcc7ba1cd7593b (patch) | |
tree | 088a94df21437173883e76609b4b1e9adfb07013 /src/net.c | |
parent | 01ca972b6cfee8e51bd44072030b607bb4452078 (diff) | |
download | iperf3-3118b42010e9b534f5e32ec7e9dcc7ba1cd7593b.tar.gz |
All client side error handling is now handled by iperf_error
Diffstat (limited to 'src/net.c')
-rw-r--r-- | src/net.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -29,13 +29,13 @@ netdial(int proto, char *client, int port) /* XXX: This is not working for non-fully qualified host names use getaddrinfo() instead? */ if ((hent = gethostbyname(client)) == 0) { - perror("gethostbyname"); + // perror("gethostbyname"); return (-1); } s = socket(AF_INET, proto, 0); if (s < 0) { - perror("socket"); + // perror("socket"); return (-1); } @@ -45,7 +45,7 @@ netdial(int proto, char *client, int port) sa.sin_family = AF_INET; if (connect(s, (struct sockaddr *) & sa, sizeof sa) < 0 && errno != EINPROGRESS) { - perror("netdial: connect error"); + // perror("netdial: connect error"); return (-1); } @@ -53,7 +53,7 @@ netdial(int proto, char *client, int port) // XXX: Is there a reason to call getpeername() if none of the return values are used? if (getpeername(s, (struct sockaddr *) & sa, &sn) < 0) { - perror("getpeername error"); + // perror("getpeername error"); return (-1); } |