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 RtmptConnection(IPEndPoint ipEndPoint, RtmptServer rtmptServer, string path, Hashtable parameters) : base(path, parameters) { this._pollingDelay = INITIAL_POLLING_DELAY; this._pendingMessages = new LinkedList(); this._notifyMessages = new LinkedList(); this._rtmptServer = rtmptServer; this._remoteEndPoint = ipEndPoint; this._buffer = ByteBuffer.Allocate(0x800); this._readBytes = 0L; this._writtenBytes = 0L; }
public RtmptConnection(RtmptServer rtmptServer, string path, Hashtable parameters) : base(path, parameters) { this._pollingDelay = INITIAL_POLLING_DELAY; this._pendingMessages = new LinkedList(); this._notifyMessages = new LinkedList(); this._rtmptServer = rtmptServer; IPAddress address = IPAddress.Parse(HttpContext.Current.Request.UserHostAddress); this._remoteEndPoint = new IPEndPoint(address, 80); this._buffer = ByteBuffer.Allocate(0x800); this._readBytes = 0L; this._writtenBytes = 0L; }
public override void Start() { _rtmptServer = new RtmptServer(this); }