public RtmptConnection(RtmptServer rtmptServer, IPEndPoint ipEndPoint, string path, Hashtable parameters)
     : base(rtmptServer.RtmpHandler, RtmpMode.Server, path, parameters)
 {
     _lock = new FastReaderWriterLock();
     _remoteEndPoint = ipEndPoint;
     _rtmptServer = rtmptServer;
     _readBytes = new AtomicLong();
     _writtenBytes = new AtomicLong();
     _session = rtmptServer.Endpoint.GetMessageBroker().SessionManager.CreateSession(this);
 }
Exemple #2
0
 internal WriteLockable(FastReaderWriterLock lockObj)
 {
     _lockObj = lockObj;
 }
Exemple #3
0
 internal WriterLock(FastReaderWriterLock lockObj)
 {
     _lockObj = lockObj;
     _lockObj.AcquireWriterLock();
 }
Exemple #4
0
        /// <summary>
        /// Initializes a new instance of the RtmpContext class.
        /// </summary>
        /// <param name="mode"></param>
        public RtmpContext(RtmpMode mode)
		{
			//_mode = mode;
            _readerWriterLock = new FastReaderWriterLock();
            SetMode(mode);
			_objectEncoding = ObjectEncoding.AMF0;
		}