#include <vmsHttpServer.h>
Public Member Functions | |
| BOOL | Start () |
| void | set_Port (unsigned short nPort) |
| unsigned short | get_Port () |
| void | Shutdown () |
| vmsHttpResourceContainer * | get_ResourceContainer () |
| vmsHttpServer (vmsHttpResourceContainer *pResources) | |
| virtual | ~vmsHttpServer () |
Static Protected Member Functions | |
| static DWORD WINAPI | _threadServer (LPVOID lp) |
Protected Attributes | |
| vmsHttpResourceContainer * | m_pResources |
| HANDLE | m_hStopEvent |
| BOOL | m_bServerRunning |
| SOCKET | m_sServer |
| unsigned short | m_nPort |
| std::vector< vmsHttpConnection * > | m_vConnections |
Definition at line 19 of file vmsHttpServer.h.
| vmsHttpServer::vmsHttpServer | ( | vmsHttpResourceContainer * | pResources | ) |
Definition at line 11 of file vmsHttpServer.cpp.
References FALSE, m_bServerRunning, m_hStopEvent, m_nPort, m_pResources, m_sServer, NULL, and TRUE.
| vmsHttpServer::~vmsHttpServer | ( | ) | [virtual] |
| BOOL vmsHttpServer::Start | ( | ) |
Definition at line 26 of file vmsHttpServer.cpp.
References _threadServer(), asio::detail::socket_ops::bind(), BOOL, FALSE, m_bServerRunning, m_nPort, m_sServer, NULL, asio::detail::socket_ops::setsockopt(), asio::detail::socket_ops::socket(), and TRUE.
Referenced by CWebInterfaceDlg::OnInitDialog(), and CWebInterfaceDlg::OnOK().
| void vmsHttpServer::set_Port | ( | unsigned short | nPort | ) |
Definition at line 115 of file vmsHttpServer.cpp.
References m_nPort.
Referenced by CWebInterfaceDlg::OnInitDialog(), and CWebInterfaceDlg::OnOK().
| unsigned short vmsHttpServer::get_Port | ( | ) |
Definition at line 110 of file vmsHttpServer.cpp.
References m_nPort.
Referenced by CWebInterfaceDlg::OnInitDialog(), and CWebInterfaceDlg::OnOK().
| void vmsHttpServer::Shutdown | ( | ) |
Definition at line 99 of file vmsHttpServer.cpp.
References FALSE, m_bServerRunning, and m_hStopEvent.
Referenced by CWebInterfaceDlg::OnOK(), and ~vmsHttpServer().
| vmsHttpResourceContainer * vmsHttpServer::get_ResourceContainer | ( | ) |
Definition at line 94 of file vmsHttpServer.cpp.
References m_pResources.
Referenced by vmsHttpConnection::_threadConnection().
| DWORD WINAPI vmsHttpServer::_threadServer | ( | LPVOID | lp | ) | [static, protected] |
Definition at line 55 of file vmsHttpServer.cpp.
References asio::detail::socket_ops::accept(), vmsHttpConnection::Attach(), FALSE, asio::detail::socket_ops::listen(), m_bServerRunning, m_hStopEvent, m_sServer, m_vConnections, NULL, and asio::detail::socket_ops::shutdown().
Referenced by Start().
vmsHttpResourceContainer* vmsHttpServer::m_pResources [protected] |
Definition at line 36 of file vmsHttpServer.h.
Referenced by get_ResourceContainer(), and vmsHttpServer().
HANDLE vmsHttpServer::m_hStopEvent [protected] |
Definition at line 38 of file vmsHttpServer.h.
Referenced by _threadServer(), Shutdown(), vmsHttpServer(), and ~vmsHttpServer().
BOOL vmsHttpServer::m_bServerRunning [protected] |
Definition at line 40 of file vmsHttpServer.h.
Referenced by _threadServer(), Shutdown(), Start(), and vmsHttpServer().
SOCKET vmsHttpServer::m_sServer [protected] |
Definition at line 44 of file vmsHttpServer.h.
Referenced by _threadServer(), Start(), and vmsHttpServer().
unsigned short vmsHttpServer::m_nPort [protected] |
Definition at line 46 of file vmsHttpServer.h.
Referenced by get_Port(), set_Port(), Start(), and vmsHttpServer().
std::vector<vmsHttpConnection*> vmsHttpServer::m_vConnections [protected] |
1.5.6