예제 #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");
            }
        }
예제 #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));
 }
예제 #3
0
 public BServerR createServerR(BServer server)
 {
     if (nbOfServerRConns == 0)
     {
         return(null);
     }
     return(new HServerR(transport, server, nbOfServerRConns));
 }
예제 #4
0
            public MyServer(BServerR outerServer, BServer innerServer) 
			    : base (innerServer.transport, null) 
            {
                this.outerServer = outerServer;
			    this.innerServer = innerServer;
		    }
예제 #5
0
	    public BServerR(BTransport transport, BServer server) {
		    this.transport = transport;
		    this.server = new MyServer(this, server);
	    }
예제 #6
0
 public MyServer(BServerR outerServer, BServer innerServer)
     : base(innerServer.transport, null)
 {
     this.outerServer = outerServer;
     this.innerServer = innerServer;
 }
예제 #7
0
 public BServerR(BTransport transport, BServer server)
 {
     this.transport = transport;
     this.server    = new MyServer(this, server);
 }
예제 #8
0
 public BServer(BServer rhs)
 {
     this.transport = rhs.transport;
     this.clientR   = rhs.clientR;
     this.remotes   = rhs.remotes;
 }
예제 #9
0
 public BServerR createServerR(BServer server)
 {
     if (nbOfServerRConns == 0) return null;
     return new HServerR(transport, server, nbOfServerRConns);
 }
예제 #10
0
파일: BServer.cs 프로젝트: marcarvalho/byps
	    public BServer(BServer rhs) {
		    this.transport = rhs.transport;
		    this.clientR = rhs.clientR;
		    this.remotes = rhs.remotes;
	    }