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

Method parseTarget

3ds/source/transfer.cpp:913–920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

911}
912
913std::optional<Transfer::TransferTarget> Transfer::parseTarget(const std::string& ipPort)
914{
915 auto hp = TransferProto::parseTarget(ipPort);
916 if (!hp) {
917 return std::nullopt;
918 }
919 return TransferTarget{std::move(hp->ip), hp->port};
920}
921
922bool Transfer::validPin(const std::string& pin)
923{

Callers

nothing calls this directly

Calls 1

parseTargetFunction · 0.85

Tested by

no test coverage detected