Utils: Rename Port::parseFrom function

It can parse both netstat and cat /proc/net/tcp output

Change-Id: Iafe37be7ace6a1eda068340b1f07e24a71724db1
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-04-06 09:01:01 +02:00
parent 3cd5e32e9c
commit f65206f990
3 changed files with 4 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ quint16 Port::number() const
QTC_ASSERT(isValid(), return -1); return quint16(m_port);
}
QList<Port> Port::parseFromNetstatOutput(const QByteArray &output)
QList<Port> Port::parseFromCommandOutput(const QByteArray &output)
{
QList<Port> ports;
const QList<QByteArray> lines = output.split('\n');