Go to the source code of this file.
◆ ASCII_END
◆ ASCII_START
◆ LINESIZE
◆ NUM_CHARS
◆ ChargenHandler()
Definition at line 96 of file chargen.c.
97{
100
102 {
104 retVal = 1;
105 }
106
109 {
111 }
112 else
113 {
115 retVal = 1;
116 }
117
120}
VOID LogEvent(LPCWSTR lpMsg, DWORD errNum, DWORD exitCode, UINT flags)
static BOOL GenerateChars(SOCKET sock)
VOID WINAPI ExitThread(IN DWORD uExitCode)
BOOL ShutdownConnection(SOCKET sock, BOOL bRec)
◆ GenerateChars()
Definition at line 51 of file chargen.c.
52{
58
59
61 chars[charIndex] = (
CHAR)
i;
62
63 loopIndex = 0;
65 {
66
68 loopIndex = 0;
69
70
71 charIndex = loopIndex;
73 {
74 line[
i] = chars[charIndex];
75
76
77 if (chars[charIndex] == chars[
NUM_CHARS - 1])
78 charIndex = 0;
79 else
80 charIndex++;
81 }
84
86 break;
87
88
89 loopIndex++;
90 }
91
93}
static BOOL SendLine(SOCKET sock, LPSTR lpLine)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Referenced by ChargenHandler().
◆ SendLine()
Definition at line 21 of file chargen.c.
22{
24
25
27 if (retVal > 0)
28 {
30 {
32 }
33 else
34 {
36 }
37 }
39 {
41 }
42 else
43 {
45 }
46
47 return bRet;
48}
INT WSAAPI send(IN SOCKET s, IN CONST CHAR FAR *buf, IN INT len, IN INT flags)
int PASCAL FAR WSAGetLastError(void)
Referenced by GenerateChars().