pipe / sctp4j

Pure Java implementation of SCTP with webRTC data channel support
38 stars 9 forks source link

Usage example #4

Closed sipsorcery closed 4 years ago

sipsorcery commented 4 years ago

Thanks for the code.

Are there any usage examples regarding how to use sctp4j once the DTLS DatagramTransport is available?

Am I right that the pe.pi.sctp4j.sctp.small.ThreadedAssociation class is the main handler for processing SCTP messages received from the DTLS transport?

steely-glint commented 4 years ago

Thats a good question. I'm (slowly) working on a non-proprietary version of the |pipe| stack that would illustrate that. I'll try and update here when I have something available.

steely-glint commented 4 years ago
                import org.bouncycastle.tls.DTLSTransport;

public Association makeAssociation(DTLSTransport trans, AssociationListener li) { a = new ThreadedAssociation(trans, li); return a; }

Is the best hint I can offer for now.

sipsorcery commented 4 years ago

Thx for the hint and thanks for the original source. We did manage to get WebRTC data channels up and running in this project with the help of a C# port of your work.

steely-glint commented 4 years ago

Could you put a link to the C# port here please, I'm sure others would find it useful.

sipsorcery commented 4 years ago

https://github.com/forestrf/sctp4cs