Represents the remote endpoint of a Flow-protocol connection; identifies the UDP endpoint of the remote Node and the logical Flow-protocol port within that Node.
More...
Represents the remote endpoint of a Flow-protocol connection; identifies the UDP endpoint of the remote Node and the logical Flow-protocol port within that Node.
In particular when performing Node::connect(), one must supply a Remote_endpoint. Constuct this via direct member initialization.
When performing Node::listen(), on the other hand, a Remote_endpoint is unnecessary; the UDP endpoint has already been supplied when starting the overall Node, so only the Flow-protocol port number is needed by Node::listen().
Since the components of a Remote_endpoint should be freely readable and modifiable, I forewent the usual accessors/mutators and simply made those components public data members.
- See also
- As of this writing, class Node documentation header has a lengthy discussion about whether Remote_endpoint needs m_flow_port at all; if it does not, then Remote_endpoint becomes isomorphic to util::Udp_endpoint and can be thus aliased or eliminated. See the to-dos section of that large doc header. (That discussion has implications for all of
net_flow
, so it belongs there, not here on this humble struct
.)