public BProtocol(BApiDescriptor apiDesc) { this.apiDesc = apiDesc; this.negotiatedBypsVersion = 0; this.negotiatedVersion = 0; this.negotiatedByteOrder = ByteOrder.UNDEFINED; }
public BTransport(BApiDescriptor apiDesc, BWire wire, BRemoteRegistry remoteRegistry) { this.apiDesc = apiDesc; this.wire = wire; this.targetId = new BTargetId(); this.remoteRegistry = remoteRegistry; }
public BProtocol(BApiDescriptor apiDesc, int negotiatedBypsVersion, long negotiatedVersion, ByteOrder negotiatedByteOrder) { this.apiDesc = apiDesc; this.negotiatedBypsVersion = negotiatedBypsVersion; this.negotiatedVersion = negotiatedVersion; this.negotiatedByteOrder = negotiatedByteOrder; }
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); }
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; } }
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; }
public BProtocolS(BApiDescriptor apiDesc) : base(apiDesc) { }
public BProtocolS(BApiDescriptor apiDesc, int negotiatedBypsVersion, long negotiatedVersion, ByteOrder negotiatedByteOrder) : base(apiDesc, negotiatedBypsVersion, negotiatedVersion, negotiatedByteOrder) { }
public BNegotiate(BApiDescriptor apiDesc) { this.protocols = SUPPORTED_PROTOCOLS; this.version = apiDesc.version; this.bversion = BMessageHeader.BYPS_VERSION_CURRENT; }