public BTransport(BApiDescriptor apiDesc, BWire wire, BRemoteRegistry remoteRegistry) { this.apiDesc = apiDesc; this.wire = wire; this.targetId = new BTargetId(); this.remoteRegistry = remoteRegistry; }
public override Object read(Object obj, BInput bin1, long version) { BInputBin bin = ((BInputBin)bin1); BRemote remote = null; BTargetId targetId = BTargetId.read(bin.bbuf.getBuffer(), bin1.header.bversion); BRemoteRegistry rreg = bin.transport.getRemoteRegistry(); if (rreg != null) { remote = rreg.getRemote(bin.header.targetId, targetId, typeId); } else { BTransport transport = new BTransport(bin.transport, targetId); remote = internalCreate(transport); } return(remote); }