errno_val);
return rv;
}
+ if (fcntl (ssm->listen_fd, F_SETFL, O_NONBLOCK) < 0)
+ {
+ errno_val = errno;
+ perror ("ERROR in main()");
+ fprintf (stderr, "SERVER: ERROR: fcntl failed (errno = %d)!\n",
+ errno_val);
+ return rv;
+ }
#ifdef VCL_TEST
rv = vppcom_session_listen (ssm->listen_fd, 10);
_rfdset = ssm->rd_fdset;
#ifdef VCL_TEST
- rv = vppcom_select (ssm->nfds, (uint64_t *) rfdset, NULL, NULL, 0);
+ rv = vppcom_select (ssm->nfds, (unsigned long *) rfdset, NULL, NULL, 0);
#else
{
struct timeval timeout;