Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[M2] Integrate app2 with skywire-visor #574

Open
Darkren opened this issue Sep 26, 2019 · 0 comments
Open

[M2] Integrate app2 with skywire-visor #574

Darkren opened this issue Sep 26, 2019 · 0 comments

Comments

@Darkren
Copy link

Darkren commented Sep 26, 2019

  1. Rename app/network => app/appnet
  2. Add appnet.RouterNetworker as described:
    So (appnet.RouterNetworker).Dial() functions will call (router.Router).DialRoutes(). The opts *DialOptions will be provided, internally by RouterNetworker
    In RouterNetworker, we need a Serve() function that calls Router.AcceptRoutes() in a loop.
    RouterNetworker will also need netutil.Porter: https://github.com/skycoin/dmsg/blob/mainnet-milestone2/netutil/porter.go

To assign ephemeral ports when dialing.
And reserve ports when Listening.
If we aren't listening on the local port specified in a receivedRouteGroup, close it immediately.
We also need to implement a net.Listener

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant