-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;
-}
-
-