public void read(Reader reader) { rpcVersion = reader.getString(16); hostId = reader.getString(16); wsId = reader.getString(16); usrId = reader.getString(16); rpcReqId = reader.getInt();reader.skip(4); returnCode = reader.getInt();reader.skip(4); mSize = reader.getInt();reader.skip(4); eSize = reader.getInt();reader.skip(4); }
protected void Init(int reqId, string serverName, string methodName) { try { this.reqId = reqId; this.serverName = serverName; this.methodName = methodName; initialised = Logger.TimeVal(); header.ReqId = reqId; header.ESize = 0; header.ReturnCode = 0; writer = new Writer(socket, header, this); reader = new Reader(socket, header, this); //header.write(writer); } catch(Exception ex) { throw new RpcException("Error Initialising Function Call for "+reqId.ToString(), ex); } finally { OnInit(); } }