Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
 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);
 }
Exemplo n.º 5
0
 public override void Start()
 {
     _rtmptServer = new RtmptServer(this);
 }