Closed
Description
Add an easy way to pass configuration properties to the adapter when you perform a connect()
/listen()
:
You could want to configure a specific connection with some extra properties.
Currently:
network.connect(transport, addr);
network.listen(transport, addr);
Expected:
network.connect(transport, addr, <config info to the adapter>)
network.listen(transport, addr, <config info to the adapter>)
Things to consider:
- Avoid that the user could mix configurations from one adapter with a transport that doesn't belong. Is it possible to maintain this safety at compile time?
- The adapter implementation should specify a default configuration to configure the adapter in case of no configuration.