MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / readOnce

Method readOnce

jalib/jsocket.cpp:321–334  ·  view source on GitHub ↗

! \fn jalib::JChunkReader::readAvailable() */

Source from the content-addressed store, hash-verified

319 \fn jalib::JChunkReader::readAvailable()
320 */
321bool
322jalib::JChunkReader::readOnce()
323{
324 if (!ready()) {
325 ssize_t cnt = _sock.read(_buffer + _read, _length - _read);
326 if (cnt <= 0 && errno != EAGAIN && errno != EINTR) {
327 _hadError = true;
328 }
329 if (cnt > 0) {
330 _read += cnt;
331 }
332 }
333 return _read > 0;
334}
335
336/*!
337 \fn jalib::JChunkWriter::isDone()

Callers 1

monitorSocketsMethod · 0.45

Calls 1

readMethod · 0.80

Tested by

no test coverage detected