/// <summary> /// Get current neighbors of this node /// </summary> /// <param name="handler">handler for result</param> public void NeighborRequest(NeighborConfirmHandler handler) { if (handler == null) return; if (_isRunning) { Neighbor[] res = _neighbourTable.GetNeighbors(); handler.Invoke(_net, Status.Success, res); } else { handler.Invoke(_net, Status.NotRunning, null); } }
/// <summary> /// Get current neighbors of this node /// </summary> /// <param name="handler">handler for result</param> public void NeighborsRequest(NeighborConfirmHandler handler) { _route.NeighborRequest(handler); }