summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2023-09-02 12:44:12 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2023-09-16 20:45:26 +0200
commiteefc444714b51db99f18e92634d961465fa78e11 (patch)
tree949926d91eccac46a88a261b3f78274b7d3ba144 /src
parentf1fe8719cc9a166d9618b9148c9080be6f612589 (diff)
Protocol: change service headers to SVT/SVR
Diffstat (limited to 'src')
-rw-r--r--src/network/protocol.cpp8
1 files 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> 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<ServiceType>(&item))
- ritems.emplace_back("STP", ptr->value);
+ ritems.emplace_back("SVT", ptr->value);
else if (const auto * ptr = get_if<ServiceRef>(&item))
- ritems.emplace_back("SRF", st.ref(ptr->value));
+ ritems.emplace_back("SVR", st.ref(ptr->value));
}
return PartialObject(PartialRecord(std::move(ritems)));