Hello,
FD_SETSIZE must be >= CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS. You can
define FD_SETSIZE yourself, however, this is quite brittle since you
must do this for every include of (e.g. also in external
libraries). A better alternative to select() is kqueue() if you use the
libbsd.
--
Se
us...@rtems.org";
Subject: Question about socket
I use the rtems version on github, and configure it use libbsd network library.
I config rtems file descriptors as 200
#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 200
and run tcp server on the board.
static void vtio_task(rte
I use the rtems version on github, and configure it use libbsd network library.
I config rtems file descriptors as 200
#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 200
and run tcp server on the board.
static void vtio_task(rtems_task_argument arg)
{
struct sockaddr_in l_addr;
int