Ejemplo n.º 1
0
        // Service start
        protected override void OnStart(string[] args)
        {
            log.Trace("-------------------------------");
            log.Trace("DVRB STARTING APPLICATION...");
            log.Trace("-------------------------------");

            this.policyServer = new FlashPolicyServer();
            this.encoder      = new Encoder();
            this.stream       = new Streaming();
            this.webService   = new WebService("http://+:8080/", this.encoder, this.stream);
            this.policyServer.Start();
            this.webService.StartWebServiceListener();
        }
Ejemplo n.º 2
0
        // Service start
        protected override void OnStart(string[] args)
        {
            log.Trace("-------------------------------");
            log.Trace("DVRB STARTING APPLICATION...");
            log.Trace("-------------------------------");

            this.policyServer = new FlashPolicyServer();
            this.encoder = new Encoder();
            this.stream = new Streaming();
            this.webService = new WebService("http://+:8080/", this.encoder, this.stream);
            this.policyServer.Start();
            this.webService.StartWebServiceListener();
        }
Ejemplo n.º 3
0
 /**
  * Wait clients in other thread.
  */
 private void AcceptProcessor(FlashPolicyServer server)
 {
     log.Debug("BeginAcceptTcpClient");
     IAsyncResult asyncResult = this.server.BeginAcceptTcpClient(this.DoAcceptTcpClientCallback, this);
 }
Ejemplo n.º 4
0
        /**
         * New client callback.
         */
        private void DoAcceptTcpClientCallback(IAsyncResult ar)
        {
            FlashPolicyServer this_class = (FlashPolicyServer)ar.AsyncState;

            this_class.ProcessClient(ar);
        }
Ejemplo n.º 5
0
 /**
  * Wait clients in other thread.
  */
 private void AcceptProcessor(FlashPolicyServer server)
 {
     log.Debug("BeginAcceptTcpClient");
     IAsyncResult asyncResult = this.server.BeginAcceptTcpClient(this.DoAcceptTcpClientCallback, this);
 }