]> git.sur5r.net Git - ngadmin/blobdiff - lib/src/network.c
Use portable way to handle timeouts
[ngadmin] / lib / src / network.c
index 09dcd6043142eea70b46c326cab5917c6a7d8891..0ad90561c9eb70443ff5357cf928793d03b9e674 100644 (file)
@@ -144,23 +144,6 @@ int forceInterface (struct ngadmin *nga)
 }
 
 
-int updateTimeout (struct ngadmin *nga)
-{
-       int ret;
-       
-       
-       /* specify receive timeout */
-       ret = setsockopt(nga->sock, SOL_SOCKET, SO_RCVTIMEO, &nga->timeout, sizeof(struct timeval));
-       if (ret < 0) {
-               perror("setsockopt(SO_RCVTIMEO)");
-               return ret;
-       }
-       
-       
-       return 0;
-}
-
-
 static int checkErrorCode (const struct nsdp_cmd *nc)
 {
        switch (nc->error) {