visitor-flutter icon indicating copy to clipboard operation
visitor-flutter copied to clipboard

refactor network code

Open cryptix opened this issue 6 years ago • 2 comments

Right now we can only listen on ONE network address for incoming connections. It would be rad to have multiple ones with different connTrackers (localhost with no limits, public with only one connection per pubkey, for instance)

Another limiting factor is that for mobile applications, the listeners might need to be suspended and resumed, also with changing addresses.

cryptix avatar Nov 11 '19 18:11 cryptix

I tried this 6 month ago on this branch but was on too many other daedlines to pull through.

The intermediate solution that is merged is that you can call sbot.Server() multiple times and it re-opens the listener.

cryptix avatar Jun 05 '20 08:06 cryptix

There is a lot of copied code from this project in https://github.com/ssb-ngi-pointer/go-ssb-room now. It's mostly in internal, thought but that might be a good experiment to find a line to cut out a re-usable module between the two.

I guess this would be the Go equivalent of secret-stack, but most likely without the plugin system.

cryptix avatar Feb 26 '21 07:02 cryptix