Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(a12) directory mode support for dynamic sources
This adds all the back and forth needed to coordinate a sink requesting to access a source attached to a directory. With this comes most of the boilerplate needed for both nat punching and STUN as well. In rough parts the dance goes like this: {client-source}: register(source, name) {server}: broadcast to all workers {server-worker-n}: if listening, send name {client-sink-listening}: get new source, check and a12(diropen, kpub) {server-worker-sink}: netstate(kpub) -> {server} {server}: netstate(kpub) find worker with kpub -> gen. secret, msg source/sink with ip info {server-worker-sink}: a12(diropened) {server-worker-source}: a12(diropened) {client-sink}: connect(diropened_rep, secret) {client-source}: (diropened:expected-kpub,secret} -> (fork+rexec-self) -> listen(secret, kpub} {client-source}: on connection: authenticate (expected-kpub, secret) After this there is a direct connection between the source and the sink. There is a lot of robustness work still and the handover to listen still does not function.
- Loading branch information
Showing
11 changed files
with
634 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.