Il giorno gio, 24/06/2010 alle 09.19 -0400, Vlad Yasevich ha scritto:> > This should add a check for sctp_style(sk, TCP), since one can't read> from> a TCP style listening sockets, but can do so from UDP-style> (SOCK_SEQPACKET).

I don't want to sound arrogant but... are you sure?

I ask because the simple testcase I wrote to make sure I didn't get itwrong opened the socket as SOCK_STREAM, and yet all of this worked fine(I'm attaching the source, for the sake of it)...

I sure hope you're mistaken here and it is _supposed_ to work here aswell, as we cannot use SOCK_SEQPACKET in the software I'm writing thisfor (feng, from the lscube project) as accept() fails on SOCK_SEQPACKET(EOPNOTSUPP) -- which itslef is strange given that the man page foraccept(2) reports it's supported on SOCK_STREAM and SOCK_SEQPACKET.