// 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(); }
/** * Wait clients in other thread. */ private void AcceptProcessor(FlashPolicyServer server) { log.Debug("BeginAcceptTcpClient"); IAsyncResult asyncResult = this.server.BeginAcceptTcpClient(this.DoAcceptTcpClientCallback, this); }
/** * New client callback. */ private void DoAcceptTcpClientCallback(IAsyncResult ar) { FlashPolicyServer this_class = (FlashPolicyServer)ar.AsyncState; this_class.ProcessClient(ar); }