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

Method parseTarget

3ds/source/transfer.cpp:914–921  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

parseTargetFunction · 0.85

Tested by

no test coverage detected