81 std::shared_ptr<RepositoryManager> repository_manager);
137 bool processPushNegotiation();
150 bool receiveObjects(
const std::unordered_set<std::string>& wanted_objects);
163 bool updateReferences(
const std::vector<std::pair<std::string, std::string>>& ref_updates);
175 bool processPullNegotiation();
188 std::unordered_set<std::string> findMissingObjects(
const std::unordered_set<std::string>& client_has);
201 bool sendObjects(
const std::unordered_set<std::string>& objects_to_send);
215 bool objectExists(
const std::string& object_hash)
const;
228 std::string readObject(
const std::string& object_hash)
const;
243 bool writeObject(
const std::string& object_hash,
const std::string& object_data);
254 std::unordered_set<std::string> getAllReferences()
const;
269 bool updateReference(
const std::string& ref_name,
const std::string& new_hash);
285 bool readLine(std::string& line)
const;
RemoteProtocol(std::shared_ptr< ISubject > event_bus, std::shared_ptr< RepositoryManager > repository_manager)
Конструирует RemoteProtocol с необходимыми зависимостями.
Определения RemoteProtocol.cxx:22