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

Method parseTarget

switch/source/transfer.cpp:902–909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

parseTargetFunction · 0.85

Tested by

no test coverage detected