#include <time.h>
#include <arpa/inet.h>
#include <vcl/sock_test.h>
+#include <fcntl.h>
#ifndef VCL_TEST
#include <sys/un.h>
#endif
errno_val);
return tsock->fd;
}
+ if (fcntl (tsock->fd, F_SETFL, O_NONBLOCK) < 0)
+ {
+ errno_val = errno;
+ perror ("ERROR in sock_test_connect_test_sockets()");
+ fprintf (stderr, "CLIENT: ERROR: fcntl failed (errno = %d)!\n",
+ errno_val);
+ return -1;
+ }
#ifdef VCL_TEST
rv = vppcom_session_connect (tsock->fd, &scm->server_endpt);