private void OnBBData(BaseEvent e) { BBEvent bBEvent = e as BBEvent; ByteArray buffer = (ByteArray)bBEvent.Params["data"]; ioHandler.OnDataRead(buffer); }
private void OnBBError(BaseEvent e) { BBEvent bBEvent = e as BBEvent; log.Error("## BlueBox Error: " + (string)bBEvent.Params["message"]); BitSwarmEvent bitSwarmEvent = new BitSwarmEvent(BitSwarmEvent.IO_ERROR); bitSwarmEvent.Params = new Hashtable(); bitSwarmEvent.Params["message"] = bBEvent.Params["message"]; DispatchEvent(bitSwarmEvent); }