MCPcopy Create free account
hub / github.com/Barracuda09/SATPI / doStartStreaming

Method doStartStreaming

src/output/StreamThreadHttp.cpp:53–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51// =========================================================================
52
53void StreamThreadHttp::doStartStreaming(const int clientID) {
54 const int streamID = _stream.getStreamID();
55 StreamClient &client = _stream.getStreamClient(clientID);
56
57 // Get default buffer size and set it x times as big
58 const int bufferSize = client.getHttpNetworkSendBufferSize() * 20;
59 client.setHttpNetworkSendBufferSize(bufferSize);
60 SI_LOG_INFO("Stream: %d, %s set network buffer size: %d KBytes", streamID,
61 _protocol.c_str(), bufferSize / 1024);
62
63// client.setSocketTimeoutInSec(2);
64}
65
66int StreamThreadHttp::getStreamSocketPort(const int clientID) const {
67 return _stream.getStreamClient(clientID).getHttpSocketPort();

Callers

nothing calls this directly

Calls 3

getStreamIDMethod · 0.45

Tested by

no test coverage detected