All of lore.kernel.org
 help / color / mirror / Atom feed
* accept after select for RTNet/TCP
@ 2023-09-27 15:13 Per Oberg
  2023-09-27 20:21 ` Florian Bezdeka
  0 siblings, 1 reply; 8+ messages in thread
From: Per Oberg @ 2023-09-27 15:13 UTC (permalink / raw)
  To: xenomai

Hi 

I'm currently porting parts of an application that uses some TCP during startup to Xenomai. I have a working example of a TCP server but i cannot make the "select" part work.

If I do 

fd = __COBALT(accept(list_fd, (struct sockaddr *) &client_addr, &client_len)))

without the select part it works. If I do a select before it returns  "Invalid argument". 

The "select" part:
------------------------------------
fd_set in_fds;
FD_ZERO(&in_fds);
FD_SET(list_fd, &in_fds);
int selRet = __COBALT(select(list_fd + 1, &in_fds, 0, 0, 0));
(FD_ISSET(list_fd, &in_fds))
{
  printf("list_fd (%i)  is in FDSET\n", list_fd);
}
------------------------------------

The program works when compiled for regular linux.
Is select for TCP RTNet a no no ?


Best Regards
Per Öberg 


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-10-05  8:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-27 15:13 accept after select for RTNet/TCP Per Oberg
2023-09-27 20:21 ` Florian Bezdeka
2023-09-28  5:54   ` Per Oberg
2023-09-28 11:17     ` Per Oberg
2023-09-29 10:41       ` Florian Bezdeka
2023-09-29 12:11         ` Jan Kiszka
2023-09-30 12:42         ` Per Oberg
2023-10-05  8:07           ` Florian Bezdeka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.