Re: Question about socket

2018-01-02 Thread Sebastian Huber
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

Re: Question about socket

2018-01-01 Thread jameszxj
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

Question about socket

2017-12-27 Thread jameszxj
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