MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / parseTarget

Method parseTarget

switch/source/transfer.cpp:935–942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

933}
934
935std::optional<Transfer::TransferTarget> Transfer::parseTarget(const std::string& ipPort)
936{
937 auto hp = TransferProto::parseTarget(ipPort);
938 if (!hp) {
939 return std::nullopt;
940 }
941 return TransferTarget{std::move(hp->ip), hp->port};
942}
943
944bool Transfer::validPin(const std::string& pin)
945{

Callers

nothing calls this directly

Calls 1

parseTargetFunction · 0.85

Tested by

no test coverage detected