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

Method parseTarget

switch/source/transfer.cpp:904–911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

902}
903
904std::optional<Transfer::TransferTarget> Transfer::parseTarget(const std::string& ipPort)
905{
906 auto hp = TransferProto::parseTarget(ipPort);
907 if (!hp) {
908 return std::nullopt;
909 }
910 return TransferTarget{std::move(hp->ip), hp->port};
911}
912
913bool Transfer::validPin(const std::string& pin)
914{

Callers

nothing calls this directly

Calls 1

parseTargetFunction · 0.85

Tested by

no test coverage detected