Exemplo n.º 1
0
        public void recv(BServer server, BMessage msg, BAsyncResultIF <BMessage> asyncResult)
        {
            if (log.isDebugEnabled())
            {
                log.debug("recv(");
            }

            BInput bin       = getInput(msg.header, msg.buf);
            Object methodObj = bin.load();

            if (log.isDebugEnabled())
            {
                log.debug("methodObj=" + methodObj);
            }

            MethodResult methodResult = new MethodResult(this, asyncResult, bin);

            BTargetId clientTargetId = bin.header.targetId;

            if (log.isDebugEnabled())
            {
                log.debug("clientTargetId=" + clientTargetId);
            }

            if (log.isDebugEnabled())
            {
                log.debug("server.recv");
            }
            server.recv(clientTargetId, methodObj, methodResult);

            if (log.isDebugEnabled())
            {
                log.debug(")recv");
            }
        }
Exemplo n.º 2
0
 public HServerR(BTransport transport, BServer server, int nbOfConns)
     : base(transport, server)
 {
     this.nbOfConns = nbOfConns;
     this.sleepMillisBeforeRetry = 30 * 1000;
     //workerThread = new Thread(new ParameterizedThreadStart(workerFnct));
 }
Exemplo n.º 3
0
 public BServerR createServerR(BServer server)
 {
     if (nbOfServerRConns == 0)
     {
         return(null);
     }
     return(new HServerR(transport, server, nbOfServerRConns));
 }
Exemplo n.º 4
0
            public MyServer(BServerR outerServer, BServer innerServer) 
			    : base (innerServer.transport, null) 
            {
                this.outerServer = outerServer;
			    this.innerServer = innerServer;
		    }
Exemplo n.º 5
0
	    public BServerR(BTransport transport, BServer server) {
		    this.transport = transport;
		    this.server = new MyServer(this, server);
	    }
Exemplo n.º 6
0
 public MyServer(BServerR outerServer, BServer innerServer)
     : base(innerServer.transport, null)
 {
     this.outerServer = outerServer;
     this.innerServer = innerServer;
 }
Exemplo n.º 7
0
 public BServerR(BTransport transport, BServer server)
 {
     this.transport = transport;
     this.server    = new MyServer(this, server);
 }
Exemplo n.º 8
0
 public BServer(BServer rhs)
 {
     this.transport = rhs.transport;
     this.clientR   = rhs.clientR;
     this.remotes   = rhs.remotes;
 }
Exemplo n.º 9
0
 public BServerR createServerR(BServer server)
 {
     if (nbOfServerRConns == 0) return null;
     return new HServerR(transport, server, nbOfServerRConns);
 }
Exemplo n.º 10
0
	    public BServer(BServer rhs) {
		    this.transport = rhs.transport;
		    this.clientR = rhs.clientR;
		    this.remotes = rhs.remotes;
	    }