Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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;
        }
Esempio n. 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;
 }
Esempio n. 6
0
 public AGIReader(IO.SocketConnection socket)
 {
     this.socket = socket;
 }
Esempio 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;
 }
Esempio n. 8
0
 public AGIChannel(IO.SocketConnection socket)
 {
     this.agiWriter = new AGIWriter(socket);
     this.agiReader = new AGIReader(socket);
 }
Esempio n. 9
0
 public AGIWriter(IO.SocketConnection socket)
 {
     lock (this)
         this.socket = socket;
 }
Esempio n. 10
0
 public AGIReader(IO.SocketConnection socket)
 {
     this.socket = socket;
 }