Example #1
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, 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;
 }
Example #2
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, 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;
 }
Example #3
0
        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;
        }
Example #4
0
 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;
 }
Example #6
0
 public AGIReader(IO.SocketConnection socket)
 {
     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 AGIChannel(IO.SocketConnection socket)
 {
     this.agiWriter = new AGIWriter(socket);
     this.agiReader = new AGIReader(socket);
 }
Example #9
0
 public AGIWriter(IO.SocketConnection socket)
 {
     lock (this)
         this.socket = socket;
 }
Example #10
0
 public AGIReader(IO.SocketConnection socket)
 {
     this.socket = socket;
 }