| 130 | } |
| 131 | |
| 132 | void RPCService::finalize(ServerConnection *owner, std::vector<ServerFunctionBase*> *ftable) |
| 133 | { |
| 134 | this->owner = owner; |
| 135 | |
| 136 | for (size_t i = 0; i < functions.size(); i++) |
| 137 | { |
| 138 | auto fn = functions[i]; |
| 139 | |
| 140 | fn->id = (int16_t)ftable->size(); |
| 141 | ftable->push_back(fn); |
| 142 | |
| 143 | lookup[fn->name] = fn; |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | void RPCService::dumpMethods(std::ostream & out) const |
| 148 | { |
no test coverage detected