Hi Giuseppe, I have problems using sendfile over SCTP :( Did you tried it already?
On Sun, 2009-04-12 at 00:03 +0200, Giuseppe Scrivano wrote: > Hi Alexandru, > > Alexandru IANCU <[email protected]> writes: > > > yes, a TCP connection is a subset of a SCTP stream. > > SCTP stream transports also notifications about different events like > > negotiation of streams number SCTP association will have, so between a > > SCTP stream and a protocol I see a data filter. > > > > I'm looking also at the code and I would change some parts that are not > > related with SCTP associations: Protocol class derived from Filter and > > Connection derived from FiltersChain. > > Actually `Connection' maps a layer 7 protocol as HTTP or FTP, how a > protocols chain can work? > > I was thinking to model the problem in another way: now a connection is > scheduled and made available to a thread when there is new data, and > presumably a new request, on its socket. This works well with TCP but > using SCTP what should be scheduled is not the socket itself but a > stream inside the socket, in other words the same connection can be > scheduled on different threads at the same time, what will be different > is not the connection but its stream. > Some things must be abstracted in the current code to make it working > well both on SCTP and TCP but it was on account :) > > Happy Easter Day! > Giuseppe
