/// <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, IMappingStrategy mappingStrategy, bool SC511_CAUSES_EXCEPTION, bool SCHANGUP_CAUSES_EXCEPTION) { this.socket = socket; this.mappingStrategy = mappingStrategy; this._SC511_CAUSES_EXCEPTION = SC511_CAUSES_EXCEPTION; this._SCHANGUP_CAUSES_EXCEPTION = SCHANGUP_CAUSES_EXCEPTION; }
public AGIChannel(IO.SocketConnection socket, bool SC511_CAUSES_EXCEPTION, bool SCHANGUP_CAUSES_EXCEPTION) { this.agiWriter = new AGIWriter(socket); this.agiReader = new AGIReader(socket); this._SC511_CAUSES_EXCEPTION = SC511_CAUSES_EXCEPTION; this._SCHANGUP_CAUSES_EXCEPTION = SCHANGUP_CAUSES_EXCEPTION; }
public AGIWriter(IO.SocketConnection socket) { lock (this) this.socket = socket; }
/// <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; }
public AGIReader(IO.SocketConnection socket) { this.socket = socket; }
public AGIChannel(IO.SocketConnection socket) { this.agiWriter = new AGIWriter(socket); this.agiReader = new AGIReader(socket); }