-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
manager.cpp: write galois mapping distribute work
- Loading branch information
1 parent
5122396
commit c6ba581
Showing
6 changed files
with
84 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#pragma once | ||
|
||
#include <future> | ||
#include "pir_client.hpp" | ||
#include "db.hpp" | ||
#include "manager.hpp" | ||
#include "distribicom.grpc.pb.h" | ||
#include "distribicom.pb.h" | ||
|
||
namespace services { | ||
/** | ||
* ClientInfo stores objects related to an individual client | ||
*/ | ||
struct ClientInfo { | ||
distribicom::ClientQueryRequest query_info_marshaled; | ||
distribicom::GaloisKeys galois_keys_marshaled; | ||
|
||
PirQuery query; | ||
seal::GaloisKeys galois_keys; | ||
unique_ptr<distribicom::Client::Stub> client_stub; | ||
}; | ||
struct ClientDB { | ||
shared_mutex mutex; | ||
map<uint32_t, unique_ptr<ClientInfo>> id_to_info; | ||
uint64_t client_counter = 0; | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters