Hi Tanguille,

Cap'n Proto is agnostic to the underlying byte transport. It can layer on
top of any byte stream or datagram stream. In terms of the C++
implementation, you can write a custom implementation of the
capnp::MessageStream interface in terms of any transport you'd like. For
example, you could use Cap'n Proto over WebRTC. It's up to you to establish
the byte-oriented or datagram-oriented connection first, then Cap'n Proto
helps you interact with the peer across that connection.

NAT traversal is the responsibility of the underlying transport, so is
outside the scope of Cap'n Proto itself.

-Kenton

On Wed, Aug 30, 2023 at 8:36 AM Tanguille Grootaert <
tanguille.groota...@gmail.com> wrote:

> I discovered that WebRTC is actually some kind of stream multiplexer. If I
> search for that in the context of Cap'n proto the only reference I can find
> is in the release notes of the 0.8 release (https://capnproto.org/news/).
> There it is stated that it can't be considered stable yet, this is now 3
> years ago but I can't find more information about this topic. Can anyone
> point me to a good source or an example implementation?
>
> Op woensdag 30 augustus 2023 om 12:27:54 UTC+2 schreef Tanguille Grootaert:
>
>> Hey all,
>>
>> I wanna build a p2p network in Rust. After some research I discovered I
>> wanna work with libp2p, Cap'n Proto, ... In the docs of libp2p I read that
>> WebRTC has NAT-traversal built in which I need. Since I want to use Cap'n
>> Proto I don't wanna use this but use the RPC-protocol of Cap'n Proto. Does
>> that have support for NAT-traversal? I can't find anything about it.
>>
>> If you have a better idea on how to approach this, that's ofcourse always
>> welcome. Thanks!
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Cap'n Proto" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to capnproto+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/capnproto/88ce497f-d49a-4b97-a130-b787e6d9d0cen%40googlegroups.com
> <https://groups.google.com/d/msgid/capnproto/88ce497f-d49a-4b97-a130-b787e6d9d0cen%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to capnproto+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/capnproto/CAJouXQnTAPXgQKTGnERnVp-F2OG-q%2BBRcDg1iCmCd-CUtUo7Uw%40mail.gmail.com.

Reply via email to