EsotericSoftware / kryonet

TCP/UDP client/server library for Java, based on Kryo
BSD 3-Clause "New" or "Revised" License
1.82k stars 417 forks source link

SCTP via UDP #68

Open mondain opened 10 years ago

mondain commented 10 years ago

I've not used Kryonet yet, but I know a thing or two about Mina and NIO. This is both a question and possibly an enhancement request. Is there a means for supporting SCTP serialized over UDP or TCP with Kryonet?

IETF draft http://tools.ietf.org/html/draft-ietf-tsvwg-sctp-udp-encaps-09

NathanSweet commented 10 years ago

Sorry, I'm not familiar with SCTP.

-Nate

On Fri, May 23, 2014 at 10:33 PM, Paul Gregoire notifications@github.comwrote:

I've not used Kryonet yet, but I know a thing or two about Mina and NIO. This is both a question and possibly an enhancement request. Is there a means for supporting SCTP serialized over UDP or TCP with Kryonet?

IETF draft http://tools.ietf.org/html/draft-ietf-tsvwg-sctp-udp-encaps-09

— Reply to this email directly or view it on GitHubhttps://github.com/EsotericSoftware/kryonet/issues/68 .

mondain commented 10 years ago

In a nutshell its another protocol, normally on the same layer as UDP or TCP. However, it's mostly unsupported, so the WebRTC folks are using it tunneled via UDP for their data channels. Oddly enough, SCTP is supported and implemented in OpenJDK. SCTP info here: http://en.wikipedia.org/wiki/Stream_Control_Transmission_Protocol

NathanSweet commented 10 years ago

You can send any bytes you want with Kryonet.

On Fri, May 23, 2014 at 11:17 PM, Paul Gregoire notifications@github.comwrote:

In a nutshell its another protocol, normally on the same layer as UDP or TCP. However, it's mostly unsupported, so the WebRTC folks are using it tunneled via UDP for their data channels. Oddly enough, SCTP is supported and implemented in OpenJDK. SCTP info here: http://en.wikipedia.org/wiki/Stream_Control_Transmission_Protocol

— Reply to this email directly or view it on GitHubhttps://github.com/EsotericSoftware/kryonet/issues/68#issuecomment-44061637 .

mondain commented 10 years ago

So I assume you're not aware of anyone doing this then, by your response. I may take a crack at it with your library; I think mina is too convoluted for this type of thing.