38 PDU * p =
const_cast<PDU*
>(pdu);
41 return vector<Port>();
44 if(n_addr.
type < 0) {
return vector<Port >(); }
46 vector<Port> possible = search(n_addr);
48 if(possible.size() > 0) {
49 int k = intuniform(0, possible.size()-1);
50 ret.push_back(possible[k]);
61 if(n_addr.
type < 0) {
return vector<Port>(); }
63 vector<Port> possible = search(n_addr);
65 if(possible.size() > 0) {
66 int k = intuniform(0, possible.size()-1);
67 ret.push_back(possible[k]);
const APN & getIpcAddress() const
Getter of IPC Process address which should be unambiguous within DIF.
virtual void refreshCache(Port oldP, Port newP)
virtual void setHopCount(unsigned int hopCount)
virtual Address & getDstAddr()
void setNodeInfo(const string &n_addr)
virtual unsigned int getHopCount() const
const std::string & getName() const
Gets APN string name representation.
Address class holds IPC Process identification.
vector< Port > lookup(const PDU *pdu)
virtual string toString()