You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This information is accessed by snet e.g. when opening new sockets.
Previously, only the LocalIA information was required and it was used by value in addr.IA the snet.SCIONNetwork struct.
To avoid requesting this same topology information over and over from the daemon, it should be cached somewhere.
The pkg/daemon.grpcConn can transparently cache the results of these API invocations.
Alternatively, the snet interface is not yet frozen. The snet.Topology could be changed into a struct that contains LocalIA, PortRange and Interface as values; the daemon Connector interface can be adapted to return this in one go for convenient initialization of the snet.SCIONNetwork.
The text was updated successfully, but these errors were encountered:
Follow up from #4344 (review).
The
snet.Topology
interface was added in #4344, as a sub-interface forpkg/daemon.Connector
:This information is accessed by
snet
e.g. when opening new sockets.Previously, only the
LocalIA
information was required and it was used by value inaddr.IA
thesnet.SCIONNetwork
struct.To avoid requesting this same topology information over and over from the daemon, it should be cached somewhere.
The
pkg/daemon.grpcConn
can transparently cache the results of these API invocations.Alternatively, the
snet
interface is not yet frozen. Thesnet.Topology
could be changed into a struct that contains LocalIA, PortRange and Interface as values; the daemonConnector
interface can be adapted to return this in one go for convenient initialization of thesnet.SCIONNetwork
.The text was updated successfully, but these errors were encountered: