コード例 #1
0
ファイル: Image.cs プロジェクト: zhumingchuang/Aeron.NET
        /// <summary>
        /// Count of observed active transports within the image liveness timeout.
        ///
        /// If the image is closed, then this is 0. This may also be 0 if no actual datagrams have arrived. IPC
        /// Images also will be 0.
        /// </summary>
        /// <returns> count of active transports - 0 if Image is closed, no datagrams yet, or IPC. </returns>
        public int ActiveTransportCount()
        {
            if (_isClosed)
            {
                return(0);
            }

            return(LogBufferDescriptor.ActiveTransportCount(_logBuffers.MetaDataBuffer()));
        }