Lines Matching refs:res
481 int res;
531 res = select(fdCount, &rset, NULL, NULL, &tv);
532 if (res == -1) {
546 if (res == 0) {
556 res = recv(_serverSignalSocket, &c, 1, 0);
558 res--;
573 res--;
580 for (i = fdMin/*0*/; (res > 0) && (i < fdCount); i++) {
583 res--;
614 int res = 0;
617 res = recv(s, _rxSocketBuffer, len, 0);
618 if (res > 0) {
620 PRINT("Received %d bytes from socket %d. Sending to LME\n", res, (int)s);
622 _lme.CompatSendMessage((UINT8)c->GetRecipientChannel(), res, (unsigned char *)_rxSocketBuffer);
624 _lme.ChannelData(c->GetRecipientChannel(), res, (unsigned char *)_rxSocketBuffer);
627 } else if (res == 0) {
662 if (res > 0) {
664 cx->AddBytesTxWindow(-res);
670 if (res == 0) {
684 ((res == 0) ? LMS_CLOSE_STATUS_CLIENT :
726 int res = ATNetworkTool::CloseSocket(serverSocket);
727 if (res != 0) {
1569 int res = gethostname(localName, sizeof(localName));
1572 if ((res == -1) || (strcmp(fqdn, localName) != 0)) {