Пример #1
0
        public BInput(BTransport transport, BMessageHeader responseHeader, BRegistry registry)
        {
            this.header = responseHeader;
		    this.transport = transport;
		    this.registry = registry;
            this.idMap = transport.getApiDesc().uniqueObjects ? null : new Dictionary<int, Object>();
        }
Пример #2
0
 public BInput(BTransport transport, BMessageHeader responseHeader, BRegistry registry)
 {
     this.header    = responseHeader;
     this.transport = transport;
     this.registry  = registry;
     this.idMap     = transport.getApiDesc().uniqueObjects ? null : new Dictionary <int, Object>();
 }
Пример #3
0
 public BOutput(BTransport transport, BRegistry registry, BMessageHeader requestHeader)
 {
     this.objMap           = transport.getApiDesc().uniqueObjects ? null : new BObjMap();
     this.header           = requestHeader;
     this.header.targetId  = transport.getTargetId();
     this.header.sessionId = transport.getSessionId();
     this.transport        = transport;
     this.registry         = registry;
     this.streams          = null;
 }
Пример #4
0
        public BRegistry getRegistry(BBinaryModel bmodel)
        {
            BRegistry ret = null;

            if (!registries.TryGetValue(bmodel, out ret))
            {
                throw new InvalidOperationException("No registry for protocol=" + bmodel);
            }
            return(ret);
        }
Пример #5
0
 public BOutput(BTransport transport, BRegistry registry, int streamHeaderMagic, int negotiatedBypsVersion, long negotiatedVersion, ByteOrder negotiatedByteOrder)
 {
     this.objMap           = transport.getApiDesc().uniqueObjects ? null : new BObjMap();
     this.header           = new BMessageHeader(streamHeaderMagic, negotiatedBypsVersion, negotiatedVersion, negotiatedByteOrder, transport.getWire().makeMessageId());
     this.header.targetId  = transport.getTargetId();
     this.header.sessionId = transport.getSessionId();
     this.transport        = transport;
     this.registry         = registry;
     this.streams          = null;
 }
Пример #6
0
 public BOutput(BTransport transport, BRegistry registry, BMessageHeader requestHeader)
 {
     this.objMap = transport.getApiDesc().uniqueObjects ? null : new BObjMap();
     this.header = requestHeader;
     this.header.targetId = transport.getTargetId();
     this.header.sessionId = transport.getSessionId();
     this.transport = transport;
     this.registry = registry;
     this.streams = null;
 }
Пример #7
0
 public BOutput(BTransport transport, BRegistry registry, int streamHeaderMagic, int negotiatedBypsVersion, long negotiatedVersion, ByteOrder negotiatedByteOrder)
 {
     this.objMap = transport.getApiDesc().uniqueObjects ? null : new BObjMap();
     this.header = new BMessageHeader(streamHeaderMagic, negotiatedBypsVersion, negotiatedVersion, negotiatedByteOrder, transport.getWire().makeMessageId());
     this.header.targetId = transport.getTargetId();
     this.header.sessionId = transport.getSessionId();
     this.transport = transport;
     this.registry = registry;
     this.streams = null;
 }
Пример #8
0
 public BApiDescriptor addRegistry(BRegistry registry)
 {
     registries[registry.bmodel] = registry;
     return this;
 }
Пример #9
0
 public BInputBin(BTransport transport, BMessageHeader responseHeader, ByteBuffer buf, BRegistry registry)
     : base(transport, responseHeader, registry)
 {
     this.bbuf = (BBufferBin)BBuffer.create(BBinaryModel.MEDIUM, buf);
 }
Пример #10
0
 public BApiDescriptor addRegistry(BRegistry registry)
 {
     registries[registry.bmodel] = registry;
     return(this);
 }
Пример #11
0
	    public BInputBin(BTransport transport, BMessageHeader responseHeader, ByteBuffer buf, BRegistry registry) 
		    : base(transport, responseHeader, registry)
        {
		    this.bbuf = (BBufferBin)BBuffer.create(BBinaryModel.MEDIUM, buf);
	    }