htcs: implement virtual socket collection

This commit is contained in:
Michael Scire 2021-02-19 13:03:48 -08:00 committed by SciresM
parent ec643789ab
commit f7fcb54622
9 changed files with 1204 additions and 1 deletions

View file

@ -33,7 +33,7 @@ namespace ams::htc::server::rpc {
private:
/* htcs::ReceiveSmallTask/htcs::ReceiveSendTask are the largest tasks, containing an inline 0xE000 buffer. */
/* We allow for ~0x100 task overhead from the additional events those contain. */
/* NOTE: Nintnedo hardcodes a maximum size of 0xE1D8, despite SendSmallTask being 0xE098 as of latest check. */
/* NOTE: Nintendo hardcodes a maximum size of 0xE1D8, despite SendSmallTask being 0xE098 as of latest check. */
static constexpr size_t MaxTaskSize = 0xE100;
using TaskStorage = typename std::aligned_storage<MaxTaskSize, alignof(void *)>::type;
private: