MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / SetBufsizeIn

Method SetBufsizeIn

cpp/src/platform/HttpClient.cpp:464–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462}
463
464void TcpSocket::SetBufsizeIn
465(
466unsigned int s
467)
468{
469 if(s < 512)
470 s = 512;
471 if(s != _inbufSize)
472 _inbuf = (char*)realloc(_inbuf, s);
473 _inbufSize = s;
474 _writeSize = s - 1;
475 _readptr = _writeptr = _inbuf;
476}
477
478static bool _openSocket
479(

Callers 1

HttpThreadProcMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected