示例#1
0
 public BProtocol(BApiDescriptor apiDesc)
 {
     this.apiDesc = apiDesc;
     this.negotiatedBypsVersion = 0;
     this.negotiatedVersion     = 0;
     this.negotiatedByteOrder   = ByteOrder.UNDEFINED;
 }
示例#2
0
 public BTransport(BApiDescriptor apiDesc, BWire wire, BRemoteRegistry remoteRegistry)
 {
     this.apiDesc        = apiDesc;
     this.wire           = wire;
     this.targetId       = new BTargetId();
     this.remoteRegistry = remoteRegistry;
 }
示例#3
0
 public BProtocol(BApiDescriptor apiDesc, int negotiatedBypsVersion, long negotiatedVersion, ByteOrder negotiatedByteOrder)
 {
     this.apiDesc = apiDesc;
     this.negotiatedBypsVersion = negotiatedBypsVersion;
     this.negotiatedVersion     = negotiatedVersion;
     this.negotiatedByteOrder   = negotiatedByteOrder;
 }
示例#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);
 }
示例#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;
            }
        }
示例#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;
            }
        }
示例#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;
        }
示例#9
0
	    public BProtocolS(BApiDescriptor apiDesc) 
            : base(apiDesc)
        {
	    }
示例#10
0
	    public BProtocolS(BApiDescriptor apiDesc, int negotiatedBypsVersion, long negotiatedVersion, ByteOrder negotiatedByteOrder)
            : base(apiDesc, negotiatedBypsVersion, negotiatedVersion, negotiatedByteOrder)
        {
	    }
示例#11
0
	    public BProtocol(BApiDescriptor apiDesc) {
		    this.apiDesc = apiDesc;
            this.negotiatedBypsVersion = 0;
		    this.negotiatedVersion = 0;
            this.negotiatedByteOrder = ByteOrder.UNDEFINED;
	    }
示例#12
0
	    public BProtocol(BApiDescriptor apiDesc, int negotiatedBypsVersion, long negotiatedVersion, ByteOrder negotiatedByteOrder) {
		    this.apiDesc = apiDesc;
            this.negotiatedBypsVersion = negotiatedBypsVersion;
		    this.negotiatedVersion = negotiatedVersion;
		    this.negotiatedByteOrder = negotiatedByteOrder;
	    }
示例#13
0
 public BProtocolS(BApiDescriptor apiDesc)
     : base(apiDesc)
 {
 }
示例#14
0
 public BProtocolS(BApiDescriptor apiDesc, int negotiatedBypsVersion, long negotiatedVersion, ByteOrder negotiatedByteOrder)
     : base(apiDesc, negotiatedBypsVersion, negotiatedVersion, negotiatedByteOrder)
 {
 }
示例#15
0
 public BNegotiate(BApiDescriptor apiDesc)
 {
     this.protocols = SUPPORTED_PROTOCOLS;
     this.version   = apiDesc.version;
     this.bversion  = BMessageHeader.BYPS_VERSION_CURRENT;
 }
示例#16
0
 public BNegotiate(BApiDescriptor apiDesc)
 {
     this.protocols = SUPPORTED_PROTOCOLS;
     this.version = apiDesc.version;
     this.bversion = BMessageHeader.BYPS_VERSION_CURRENT;
 }