Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FileClient"/> class.
 /// </summary>
 /// <param name="connectString">Connect string of the <see cref="FileClient"/>. See <see cref="DefaultConnectionString"/> for format.</param>
 public FileClient(string connectString)
     : base(TransportProtocol.File, connectString)
 {
     m_autoRepeat                = DefaultAutoRepeat;
     m_receiveOnDemand           = DefaultReceiveOnDemand;
     m_receiveInterval           = DefaultReceiveInterval;
     m_startingOffset            = DefaultStartingOffset;
     m_fileOpenMode              = DefaultFileOpenMode;
     m_fileShareMode             = DefaultFileShareMode;
     m_fileAccessMode            = DefaultFileAccessMode;
     m_fileClient                = new TransportProvider <FileStream>();
     m_receiveDataTimer          = new Timer();
     m_receiveDataTimer.Elapsed += m_receiveDataTimer_Elapsed;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SerialClient"/> class.
 /// </summary>
 /// <param name="connectString">Connect string of the <see cref="SerialClient"/>. See <see cref="DefaultConnectionString"/> for format.</param>
 public SerialClient(string connectString)
     : base(TransportProtocol.Serial, connectString)
 {
     m_serialClient           = new TransportProvider <SerialPort>();
     m_receivedBytesThreshold = 1;
 }