Example #1
0
        public MessageProcessor(MessageQueue                  queue,
			MessageEventHandler    messageHandler,
			ErrorHandler           errorHandler)
        {
            this.messageQueue    = queue;
            this.messageHandler    = messageHandler;
            this.errorHandler    = errorHandler;
        }
Example #2
0
        /**
         * Creates a network access point.
         * @param apDescriptor the address and port where to bind.
         * @param messageQueue the FIFO list where incoming messages should be queued
         * @param errorHandler the instance to notify when errors occur.
         */
        public NetAccessPoint(NetAccessPointDescriptor apDescriptor,
			MessageQueue             messageQueue,
			ErrorHandler			    errorHandler)
        {
            this.apDescriptor = apDescriptor;
            this.messageQueue = messageQueue;
            this.errorHandler = errorHandler;
        }
Example #3
0
 /**
  * Constructs a NetAccessManager.
  */
 public NetAccessManager()
 {
     this.messageQueue = new MessageQueue(this);
 }
Example #4
0
 /**
  * Constructs a NetAccessManager.
  */
 public NetAccessManager()
 {
     this.messageQueue = new MessageQueue(this);
 }