Exemplo n.º 1
0
 /// <summary>
 /// Creates a new AsteriskFastAGI.
 /// </summary>
 public AsteriskFastAGI(string mappingStrategy)
 {
     this.address         = Common.AGI_BIND_ADDRESS;
     this.port            = Common.AGI_BIND_PORT;
     this.poolSize        = Common.AGI_POOL_SIZE;
     this.mappingStrategy = new MappingStrategy(mappingStrategy);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new AsteriskFastAGI.
 /// </summary>
 /// <param name="ipaddress">The address to listen on.</param>
 /// <param name="port">The port to listen on.</param>
 /// <param name="poolSize">The number of worker threads in the thread pool.
 /// This equals the maximum number of concurrent requests this AGIServer can serve.</param>
 public AsteriskFastAGI(string ipaddress, int port, int poolSize)
 {
     this.address         = ipaddress;
     this.port            = port;
     this.poolSize        = poolSize;
     this.mappingStrategy = new MappingStrategy();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a new AsteriskFastAGI.
 /// </summary>
 /// <param name="port">The port to listen on.</param>
 /// <param name="poolSize">The number of worker threads in the thread pool.
 /// This equals the maximum number of concurrent requests this AGIServer can serve.</param>
 public AsteriskFastAGI(int port, int poolSize)
 {
     this.address         = Common.AGI_BIND_ADDRESS;
     this.port            = port;
     this.poolSize        = poolSize;
     this.mappingStrategy = new MappingStrategy();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Creates a new AsteriskFastAGI.
 /// </summary>
 /// <param name="port">The port to listen on.</param>
 /// <param name="poolSize">The number of worker threads in the thread pool.
 /// This equals the maximum number of concurrent requests this AGIServer can serve.</param>
 public AsteriskFastAGI(int port, int poolSize)
 {
     this.address = Common.AGI_BIND_ADDRESS;
     this.port = port;
     this.poolSize = poolSize;
     this.mappingStrategy = new MappingStrategy();
 }
Exemplo n.º 5
0
 /// <summary>
 /// Creates a new AsteriskFastAGI.
 /// </summary>
 public AsteriskFastAGI(string mappingStrategy)
 {
     this.address = Common.AGI_BIND_ADDRESS;
     this.port = Common.AGI_BIND_PORT;
     this.poolSize = Common.AGI_POOL_SIZE;
     this.mappingStrategy = new MappingStrategy(mappingStrategy);
 }
Exemplo n.º 6
0
		/// <summary>
		/// Creates a new AsteriskFastAGI.
		/// </summary>
		/// <param name="ipaddress">The address to listen on.</param>
		/// <param name="port">The port to listen on.</param>
		/// <param name="poolSize">The number of worker threads in the thread pool.
		/// This equals the maximum number of concurrent requests this AGIServer can serve.</param>
		public AsteriskFastAGI(string ipaddress, int port, int poolSize)
		{
			this.address = ipaddress;
			this.port = port;
			this.poolSize = poolSize;
			this.mappingStrategy = new MappingStrategy();
		}
Exemplo n.º 7
0
 /// <summary>
 /// Creates a new AGIConnectionHandler to handle the given socket connection.
 /// </summary>
 /// <param name="socket">the socket connection to handle.</param>
 /// <param name="mappingStrategy">the strategy to use to determine which script to run.</param>
 public AGIConnectionHandler(IO.SocketConnection socket, MappingStrategy mappingStrategy)
 {
     this.socket = socket;
     this.mappingStrategy = mappingStrategy;
 }
Exemplo n.º 8
0
 /// <summary>
 /// Creates a new AGIConnectionHandler to handle the given socket connection.
 /// </summary>
 /// <param name="socket">the socket connection to handle.</param>
 /// <param name="mappingStrategy">the strategy to use to determine which script to run.</param>
 public AGIConnectionHandler(IO.SocketConnection socket, MappingStrategy mappingStrategy)
 {
     this.socket          = socket;
     this.mappingStrategy = mappingStrategy;
 }