In C++ encapsulate host/port/protocol information in a structure that is passed to the connection constructor
Give names and structure to the connection information.
This will allow us to pass this around in the code if/as we move to a connectionless state.
We can also forward the host/port/... queries to this structure and reduce the connection specific api to deal more with channels and data.
Something like (please fix the names)
struct conn_info { std::string hostname; short port; enum protocol; }
nds::connection(conn_info(hostname))
Ed and Jonathan had discussed maybe doing this as a class hierarchy to ally different types of connections, direct to a specific host, config by environment or dns or ...