public NetworkLayer(IMac mac) { _mac = mac; _mgmt = new NetworkMgmt(this); _route = new Routing(this, mac, this); #if USE_FRAG int mtu, head, tail; _route.GetMtuSize(out mtu, out head, out tail); _frag = new Fragmentation.Fragmentation(10, _route.DataRequest, mtu, head, tail); #endif _mac.BeaconNotifyIndication = MacBeaconNotifyIndication; _mac.ResetRequest(true, null); }
private void StartHandlerJoinRequest( Routing sender, Status status, UInt16 shortAddr) { if (!_running) return; if (status == Status.Success) SetBeaconPayload(); if (_joinConfirmHandler != null) _joinConfirmHandler.Invoke(_net, status, shortAddr, _logicalChannel, _channelPage); if (status != Status.Success) _running = false; }