ReactOS 0.4.15-dev-8419-g7f0e8a3
CHttpClientThread Class Reference

#include <httpd.h>

Inheritance diagram for CHttpClientThread:
Collaboration diagram for CHttpClientThread:

Public Member Functions

 CHttpClientThread ()
 
 CHttpClientThread (LPCServerClientSocket Socket)
 
virtual void Execute ()
 
- Public Member Functions inherited from CServerClientThread
 CServerClientThread ()
 
 CServerClientThread (CServerClientSocket *socket)
 
virtual ~CServerClientThread ()
 
- Public Member Functions inherited from CThread
 CThread ()
 
virtual ~CThread ()
 
BOOL PostMessage (UINT Msg, WPARAM wParam, LPARAM lParam)
 
virtual void Execute ()
 
virtual void Terminate ()
 
BOOL Terminated ()
 

Additional Inherited Members

- Protected Attributes inherited from CServerClientThread
CServerClientSocketClientSocket
 
- Protected Attributes inherited from CThread
BOOL bTerminated
 
DWORD dwThreadId
 
HANDLE hThread
 
ThreadData Data
 

Detailed Description

Definition at line 53 of file httpd.h.

Constructor & Destructor Documentation

◆ CHttpClientThread() [1/2]

CHttpClientThread::CHttpClientThread ( )
inline

Definition at line 55 of file httpd.h.

55{};

◆ CHttpClientThread() [2/2]

CHttpClientThread::CHttpClientThread ( LPCServerClientSocket  Socket)

Definition at line 344 of file httpd.cpp.

345{
346 ClientSocket = lpSocket;
347}
CServerClientSocket * ClientSocket
Definition: socket.h:120

Member Function Documentation

◆ Execute()

VOID CHttpClientThread::Execute ( )
virtual

Reimplemented from CThread.

Definition at line 350 of file httpd.cpp.

351{
352 MSG Msg;
353
354 while (!Terminated()) {
355 (( CHttpClient *) ClientSocket)->MessageLoop();
356 if (PeekMessage(&Msg, 0, 0, 0, PM_REMOVE) != 0) {
357 switch (Msg.message) {
358 case HTTPD_START: {
359 // TODO: Start thread
360 break;
361 }
362 case HTTPD_STOP: {
363 // TODO: Stop thread
364 break;
365 }
366 default:
368 }
369
370 }
371 }
372
373 if (ClientSocket != NULL) {
374 delete ClientSocket;
376 }
377}
BOOL Terminated()
Definition: thread.cpp:77
struct @1628 Msg[]
#define NULL
Definition: types.h:112
#define HTTPD_STOP
Definition: httpd.h:14
#define HTTPD_START
Definition: httpd.h:13
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1829
#define PM_REMOVE
Definition: winuser.h:1196
#define PeekMessage
Definition: winuser.h:5839
#define DispatchMessage
Definition: winuser.h:5774

The documentation for this class was generated from the following files: