| 51 | // ========================================================================= |
| 52 | |
| 53 | void 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 | |
| 66 | int StreamThreadHttp::getStreamSocketPort(const int clientID) const { |
| 67 | return _stream.getStreamClient(clientID).getHttpSocketPort(); |
nothing calls this directly
no test coverage detected