TcpConnection_Lib/TcpConnection_Lib.cs
/// <summary>
/// Polling method for checking, if a new string was added to the _receivedDataQueue.
/// </summary>
/// <returns>NULL, if the queue is empty. Otherwise the string will be returned.</returns>
Polling method for checking, if a new string was added to the _receivedDataQueue.
Polling method for checking if a new string was added to the _receivedDataQueue .
public string GetReceivedString()
        {
            try
            {
                if (_receivedDataQueue.IsEmpty)
                {
                    return null;
                }
                _receivedDataQueue.TryDequeue(out string tempString);
                return tempString;
            }
            catch (Exception Ex)
            {
                throw Ex;
            }
        }
public string GetReceivedString ( ) { try { if ( _receivedDataQueue . IsEmpty ) { return null ; } _receivedDataQueue . TryDequeue ( out string tempString ) ; return tempString ; } catch ( Exception Ex ) { throw Ex ; } }
Polling method for checking, if a new string was added to the _receivedDataQueue.
Polling method for checking if a new string was added to the _receivedDataQueue .
NULL, if the queue is empty. Otherwise the string will be returned.
NULL if the queue is empty . Otherwise the string will be returned .