示例#1
0
        private void OnBBData(BaseEvent e)
        {
            BBEvent   bBEvent = e as BBEvent;
            ByteArray buffer  = (ByteArray)bBEvent.Params["data"];

            ioHandler.OnDataRead(buffer);
        }
示例#2
0
        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);
        }