Example #1
0
 public BProtocol(BApiDescriptor apiDesc)
 {
     this.apiDesc = apiDesc;
     this.negotiatedBypsVersion = 0;
     this.negotiatedVersion     = 0;
     this.negotiatedByteOrder   = ByteOrder.UNDEFINED;
 }
Example #2
0
 public BTransport(BApiDescriptor apiDesc, BWire wire, BRemoteRegistry remoteRegistry)
 {
     this.apiDesc        = apiDesc;
     this.wire           = wire;
     this.targetId       = new BTargetId();
     this.remoteRegistry = remoteRegistry;
 }
Example #3
0
 public BProtocol(BApiDescriptor apiDesc, int negotiatedBypsVersion, long negotiatedVersion, ByteOrder negotiatedByteOrder)
 {
     this.apiDesc = apiDesc;
     this.negotiatedBypsVersion = negotiatedBypsVersion;
     this.negotiatedVersion     = negotiatedVersion;
     this.negotiatedByteOrder   = negotiatedByteOrder;
 }
Example #4
0
 public BClient_BUtilityRequests getClientUtilityRequests()
 {
     if (clientUtilityRequests == null)
     {
         BApiDescriptor    apiDesc          = BApiDescriptor_BUtilityRequests.instance;
         BTransportFactory transportFactory = new HTransportFactoryClient(apiDesc, this, 0);
         clientUtilityRequests = BClient_BUtilityRequests.createClient(transportFactory);
     }
     return(clientUtilityRequests);
 }
Example #5
0
        public BTransport(BTransport rhs, BTargetId targetId)
        {
            this.apiDesc   = rhs.apiDesc;
            this.wire      = rhs.wire;
            this.targetId  = targetId;
            this.sessionId = rhs.sessionId;
            this.protocol  = rhs.getProtocol();

            // Still connected to the server given by rhs.
            this.connectedServerId = rhs.targetId.getServerId();
        }
        public HTransportFactoryClient(BApiDescriptor apiDesc, BWire wire, int nbOfServerRConns)
        {
            this.transport = new BTransport(apiDesc, wire, null);
            this.nbOfServerRConns = nbOfServerRConns;

            // By default, .NET allows only 2 connections per server.
            // This is not sufficient when sending stream requests. 
            // In this case we need 1 + nbOfServerRConns + number-of-streams connections.
            // Assume here that a requests does not send more than 10 streams. If more streams 
            // should be sent, the .NET option has to be increased.
            int nbConns = 1 + nbOfServerRConns + 10;
            if (System.Net.ServicePointManager.DefaultConnectionLimit < nbConns)
            {
                System.Net.ServicePointManager.DefaultConnectionLimit = nbConns;
            }
        }
Example #7
0
        public HTransportFactoryClient(BApiDescriptor apiDesc, BWire wire, int nbOfServerRConns)
        {
            this.transport        = new BTransport(apiDesc, wire, null);
            this.nbOfServerRConns = nbOfServerRConns;

            // By default, .NET allows only 2 connections per server.
            // This is not sufficient when sending stream requests.
            // In this case we need 1 + nbOfServerRConns + number-of-streams connections.
            // Assume here that a requests does not send more than 10 streams. If more streams
            // should be sent, the .NET option has to be increased.
            int nbConns = 1 + nbOfServerRConns + 10;

            if (System.Net.ServicePointManager.DefaultConnectionLimit < nbConns)
            {
                System.Net.ServicePointManager.DefaultConnectionLimit = nbConns;
            }
        }
Example #8
0
        public static BTransport createTransport()
        {

            BRegistry registryBin = new BRegistry_Testser();

            BWire wire = new MyWire();

            BApiDescriptor apiDesc = new BApiDescriptor("TestSerialize",
                    "com.wilutions.byps.test.api",
                    0,
                    false);


            BProtocol proto = new BProtocolS(apiDesc, 1, 0, ByteOrder.LITTLE_ENDIAN);

            BTransport transport = new BTransport(apiDesc, wire, null);
            transport.setProtocol(proto);

            return transport;
        }
Example #9
0
	    public BProtocolS(BApiDescriptor apiDesc) 
            : base(apiDesc)
        {
	    }
Example #10
0
	    public BProtocolS(BApiDescriptor apiDesc, int negotiatedBypsVersion, long negotiatedVersion, ByteOrder negotiatedByteOrder)
            : base(apiDesc, negotiatedBypsVersion, negotiatedVersion, negotiatedByteOrder)
        {
	    }
Example #11
0
	    public BProtocol(BApiDescriptor apiDesc) {
		    this.apiDesc = apiDesc;
            this.negotiatedBypsVersion = 0;
		    this.negotiatedVersion = 0;
            this.negotiatedByteOrder = ByteOrder.UNDEFINED;
	    }
Example #12
0
	    public BProtocol(BApiDescriptor apiDesc, int negotiatedBypsVersion, long negotiatedVersion, ByteOrder negotiatedByteOrder) {
		    this.apiDesc = apiDesc;
            this.negotiatedBypsVersion = negotiatedBypsVersion;
		    this.negotiatedVersion = negotiatedVersion;
		    this.negotiatedByteOrder = negotiatedByteOrder;
	    }
Example #13
0
 public BProtocolS(BApiDescriptor apiDesc)
     : base(apiDesc)
 {
 }
Example #14
0
 public BProtocolS(BApiDescriptor apiDesc, int negotiatedBypsVersion, long negotiatedVersion, ByteOrder negotiatedByteOrder)
     : base(apiDesc, negotiatedBypsVersion, negotiatedVersion, negotiatedByteOrder)
 {
 }
Example #15
0
 public BNegotiate(BApiDescriptor apiDesc)
 {
     this.protocols = SUPPORTED_PROTOCOLS;
     this.version   = apiDesc.version;
     this.bversion  = BMessageHeader.BYPS_VERSION_CURRENT;
 }
Example #16
0
 public BNegotiate(BApiDescriptor apiDesc)
 {
     this.protocols = SUPPORTED_PROTOCOLS;
     this.version = apiDesc.version;
     this.bversion = BMessageHeader.BYPS_VERSION_CURRENT;
 }