virtual public StatusMessage GetStatus(string con_type_string, Address addr)
{
ArrayList neighbors = new ArrayList();
//Get the neighbors of this type:
/*
* Send the list of all neighbors of this type.
* @todo make sure we are not sending more than
* will fit in a single packet.
*/
ConnectionType ct = Connection.StringToMainType( con_type_string );
foreach(Connection c in _connection_table.GetConnections( ct ) ) {
neighbors.Add(NodeInfo.CreateInstance(c.Address));
}
return new StatusMessage( con_type_string, neighbors );
}