Пример #1
0
        internal static void RaiseTextWithEndCharReceived(INamedPort ivp, string messageText)
        {
            var e = new NamedPortEventArgs(NamedPortEventArgs.PortEventType.DataWithEndCharReceived, messageText, ivp);

            VirtualPortEvent?.Invoke(ivp, e);
        }
Пример #2
0
        internal static void RaiseDialUpModemEvent(INamedPort port, string text)
        {
            var e = new NamedPortEventArgs(NamedPortEventArgs.PortEventType.ModemEvent, text, port);

            VirtualPortEvent?.Invoke(port, e);
        }
Пример #3
0
        internal static void RaiseByteReceivedEvent(INamedPort ivp, byte messageBytes)
        {
            var e = new NamedPortEventArgs(NamedPortEventArgs.PortEventType.ByteReceived, messageBytes, ivp);

            VirtualPortEvent?.Invoke(ivp, e);
        }
Пример #4
0
        internal static void RaiseLineTimeoutEvent(INamedPort ivp)
        {
            var e = new NamedPortEventArgs(NamedPortEventArgs.PortEventType.LineIdleTimeout, ivp);

            VirtualPortEvent?.Invoke(ivp, e);
        }