Template function, which requests data from a specified element in a specified service stream. When the memory is insufficient, an exception is thrown in the function. Multi-thread concurrency is not supported.
1 2 | template <class T> APP_ERROR MxStreamManager::GetPacket(Packet<T>& packet, const std::string& streamName, const std::string& outElement, const uint32_t& msTimeOut = DELAY_TIME) |
Parameter |
Input/Output |
Description |
|---|---|---|
packet |
Output |
Data output by the specified element |
streamName |
Input |
Stream name |
outElement |
Input |
Element name |
msTimeOut |
Input |
Maximum waiting time, in milliseconds. The default value is 3000 ms (3s). |
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |