[coll] Add C API for the tracker. (#9773)

This commit is contained in:
Jiaming Yuan
2023-11-08 18:17:14 +08:00
committed by GitHub
parent 06bdc15e9b
commit 44099f585d
5 changed files with 264 additions and 0 deletions

View File

@@ -114,6 +114,9 @@ class RabitTracker : public Tracker {
// record for how to reach out to workers if error happens.
std::vector<std::pair<std::string, std::int32_t>> worker_error_handles_;
// listening socket for incoming workers.
//
// At the moment, the listener calls accept without first polling. We can add an
// additional unix domain socket to allow cancelling the accept.
TCPSocket listener_;
Result Bootstrap(std::vector<WorkerProxy>* p_workers);