Beispiel #1
0
        /// <summary>
        /// Start the DataServer streaming
        /// </summary>
        public void Start()
        {
            sendStop = new ManualResetEvent(false);

            streamClient                 = new StreamClient(Hostname, Port, UseSSL);
            streamClient.SendFailed     += StreamClient_SendFailed;
            streamClient.SendSuccessful += StreamClient_SendSuccessful;
            streamClient.Connected      += StreamClient_Connected;
            streamClient.Disconnected   += StreamClient_Disconnected;
            streamClient.Start();

            // Start Buffer Thread if the Buffer is configured
            if (Buffer != null)
            {
                Buffer.Start(Hostname);

                bufferThread = new Thread(new ThreadStart(BufferWorker));
                bufferThread.Start();
            }
        }