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

Method parseTarget

switch/source/transfer.cpp:934–941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

parseTargetFunction · 0.85

Tested by

no test coverage detected