/// <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); }
/// <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(); }
/// <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(); }
/// <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; }