Using custom Transport Protocol (Cap'n Proto RPC) #4420
-
I want to use I tried to compose a swarm.listen_on("/ip4/0.0.0.0/capnp-rpc/0".parse()?)?; Here you can find my sandbox project where I'm testing this out if that would help to show what I mean. |
Beta Was this translation helpful? Give feedback.
Answered by
thomaseizinger
Sep 3, 2023
Replies: 1 comment 4 replies
-
You seem to be conflating several things. I can recommend reading the general docs first: https://docs.libp2p.io/concepts/introduction/overview/ |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you should be able to just use captn proto on top of an existing stream established by e.g. yamux layered on top of noise. Or a QUIC stream.
If I understand the above article correctly, captn proto just emits bytes that you still need to send over a socket. You can just send that over a stream instead :)