MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / tryRead

Method tryRead

tests/CAT_TS-2000_test.cpp:101–108  ·  view source on GitHub ↗

Read until ';' with a custom timeout; returns null QString on timeout.

Source from the content-addressed store, hash-verified

99
100 // Read until ';' with a custom timeout; returns null QString on timeout.
101 QString tryRead(int msTimeout)
102 {
103 const int saved = m_timeout;
104 m_timeout = msTimeout;
105 QString result = readUntilSemi();
106 m_timeout = saved;
107 return result;
108 }
109
110 void close() { m_sock.disconnectFromHost(); }
111

Callers 1

section6Function · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected