TcpConnection_Lib/TcpConnection_Lib.cs
/// <summary>
/// Try to start the reading thread.
/// </summary>
/// <returns>True, if the thread could be successfully started.</returns>
Try to start the reading thread.
Try to start the reading thread .
public bool TryReadingData()
        {
            try
            {
                if (!(TcpIsConnected = _client.Connected) || _threadRunningFlag)
                {
                    return false;
                }
                readingThread = new Thread(Reading)
                {
                    IsBackground = true
                };
                readingThread.Start();
                return true;
            }
            catch (Exception Ex)
            {
                throw Ex;
            }
        }
public bool TryReadingData ( ) { try { if ( ! ( TcpIsConnected = _client . Connected ) || _threadRunningFlag ) { return false ; } readingThread = new Thread ( Reading ) { IsBackground = true } ; readingThread . Start ( ) ; return true ; } catch ( Exception Ex ) { throw Ex ; } }
Try to start the reading thread.
Try to start the reading thread .
True, if the thread could be successfully started.
True if the thread could be successfully started .