From eefc444714b51db99f18e92634d961465fa78e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 2 Sep 2023 12:44:12 +0200 Subject: Protocol: change service headers to SVT/SVR --- src/network/protocol.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/network/protocol.cpp b/src/network/protocol.cpp index 40aeb47..79c023d 100644 --- a/src/network/protocol.cpp +++ b/src/network/protocol.cpp @@ -537,10 +537,10 @@ optional NetworkProtocol::Header::load(const PartialObj } else if (item.name == "CAC") { if (auto ref = item.asRef()) items.emplace_back(ChannelAccept { ref->digest() }); - } else if (item.name == "STP") { + } else if (item.name == "SVT") { if (auto val = item.asUUID()) items.emplace_back(ServiceType { *val }); - } else if (item.name == "SRF") { + } else if (item.name == "SVR") { if (auto ref = item.asRef()) items.emplace_back(ServiceRef { ref->digest() }); } @@ -588,10 +588,10 @@ PartialObject NetworkProtocol::Header::toObject(const PartialStorage & st) const ritems.emplace_back("CAC", st.ref(ptr->value)); else if (const auto * ptr = get_if(&item)) - ritems.emplace_back("STP", ptr->value); + ritems.emplace_back("SVT", ptr->value); else if (const auto * ptr = get_if(&item)) - ritems.emplace_back("SRF", st.ref(ptr->value)); + ritems.emplace_back("SVR", st.ref(ptr->value)); } return PartialObject(PartialRecord(std::move(ritems))); -- cgit v1.2.3