Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 21 of file chargen.c.
Referenced by GenerateChars().
{ BOOL bRet = FALSE; /*FIXME: need to establish if peer closes connection, not just report a socket error */ INT retVal = send(sock, lpLine, LINESIZE, 0); if (retVal > 0) { if (retVal == LINESIZE) { bRet = TRUE; } else { LogEvent(L"Chargen: Not sent enough bytes", 0, 0, LOG_FILE); } } else if (retVal == SOCKET_ERROR) { LogEvent(L"Chargen: Socket error\n", WSAGetLastError(), 0, LOG_ERROR); } else { LogEvent(L"Chargen: unknown error\n", WSAGetLastError(), 0, LOG_ERROR); } return bRet; }