[mammoth] Finish separating PortServer and PortClient.
This commit is contained in:
parent
5fb9fa6ae6
commit
b7a962cc26
10 changed files with 66 additions and 60 deletions
|
|
@ -61,9 +61,12 @@ void YellowstoneServer::ServerThread() {
|
|||
break;
|
||||
case kYellowstoneGetRegistration: {
|
||||
dbgln("Yellowstone::GetRegistration");
|
||||
uint64_t reg_cap;
|
||||
check(register_port_.CreateClient(®_cap));
|
||||
auto client_or = register_port_.CreateClient();
|
||||
if (!client_or.ok()) {
|
||||
check(client_or.error());
|
||||
}
|
||||
YellowstoneGetRegistrationResp resp;
|
||||
uint64_t reg_cap = client_or.value().cap();
|
||||
check(ZReplyPortSend(reply_port_cap, sizeof(resp), &resp, 1, ®_cap));
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue