Ejemplo n.º 1
0
        void HandleEventReceived(UInt32 eventId0, UInt32 data)
        {
            var     eventIdA = (WidcommL2CapClient.MyL2CapEvent)eventId0;
            PORT_EV?eventId  = ConvertEvent(eventIdA, data);

            Utils.MiscUtils.Trace_WriteLine("{0} HandleEvent: was: '{1}'=0x{2:X} data: 0x{3:X}, mapped to: '{4}'",
                                            DateTime.Now.TimeOfDay.ToString(),
                                            eventIdA, eventId0, data, eventId);
            if (eventIdA == WidcommL2CapClient.MyL2CapEvent.IncomingConnection_Pending)
            {
                Accept();
            }
            if (!eventId.HasValue)
            {
                return;
            }
            m_parent.HandlePortEvent((PORT_EV)eventId, this);
        }
Ejemplo n.º 2
0
 void HandleEventReceived(UInt32 eventId)
 {
     Utils.MiscUtils.Trace_WriteLine("{2} HandleEvent: {0}=0x{0:X}={1}", eventId, (PORT_EV)eventId,
                                     DateTime.Now.TimeOfDay.ToString());
     m_parent.HandlePortEvent((PORT_EV)eventId, this);
 }