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); }
public override void Start() { _rtmptServer = new RtmptServer(this); }