コード例 #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);
        }