aboutsummaryrefslogtreecommitdiff
path: root/src/net.c
diff options
context:
space:
mode:
authorsethdelliott <devnull@localhost>2010-07-20 00:03:03 +0000
committersethdelliott <devnull@localhost>2010-07-20 00:03:03 +0000
commit3118b42010e9b534f5e32ec7e9dcc7ba1cd7593b (patch)
tree088a94df21437173883e76609b4b1e9adfb07013 /src/net.c
parent01ca972b6cfee8e51bd44072030b607bb4452078 (diff)
downloadiperf3-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net.c b/src/net.c
index 037a39d..b44f30a 100644
--- a/src/net.c
+++ b/src/net.c
@@ -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);
}