MCPcopy Create free account
hub / github.com/Segs/Segs / parseAddress

Function parseAddress

Components/ConfigExtension.cpp:19–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17#include <ace/INET_Addr.h>
18
19bool parseAddress(const QString &src,ACE_INET_Addr &tgt)
20{
21 QStringList parts = src.trimmed().split(':');
22 if(parts.size()!=2)
23 return false;
24 tgt.set(parts[1].toUShort(),qPrintable(parts[0]));
25 return true;
26}
27
28//! @}

Callers 4

ReadConfigAndRestartMethod · 0.85
ReadConfigAndRestartMethod · 0.85
ReadConfigMethod · 0.85
ReadConfigAndRestartMethod · 0.85

Calls 2

sizeMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected