Lines Matching refs:nread
1041 ssize_t nread = Base::ReadFromFd(hSession->ctrlFd[STREAM_MAIN], buf, size);
1043 if (nread < 0) {
1046 uv_strerror_r(static_cast<int>(nread), buffer, bufSize);
1051 if (nread == 0) {
1057 hSessionBase->DispatchSessionThreadCommand(hSession, reinterpret_cast<uint8_t *>(buf), nread);
1214 ssize_t nread = Base::ReadFromFd(hSession->ctrlFd[STREAM_WORK], buf, size);
1216 if (nread < 0) {
1219 uv_strerror_r(static_cast<int>(nread), buffer, bufSize);
1223 if (nread % formatCommandSize != 0) {
1224 WRITE_LOG(LOG_FATAL, "ReadCtrlFromMain size failed, nread == %d", nread);
1234 if (index >= nread) {