mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 11:53:16 +00:00
- give roshttpd a rbuild file
- include it in build - fix building with msvc svn path=/trunk/; revision=25059
This commit is contained in:
parent
231c494a6f
commit
369fa23f46
8 changed files with 34 additions and 12 deletions
|
@ -25,6 +25,9 @@
|
||||||
<directory name="route">
|
<directory name="route">
|
||||||
<xi:include href="route/route.rbuild" />
|
<xi:include href="route/route.rbuild" />
|
||||||
</directory>
|
</directory>
|
||||||
|
<directory name="roshttpd">
|
||||||
|
<xi:include href="roshttpd/roshttpd.rbuild" />
|
||||||
|
</directory>
|
||||||
<directory name="telnet">
|
<directory name="telnet">
|
||||||
<xi:include href="telnet/telnet.rbuild" />
|
<xi:include href="telnet/telnet.rbuild" />
|
||||||
</directory>
|
</directory>
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
* REVISIONS:
|
* REVISIONS:
|
||||||
* CSH 01/09/2000 Created
|
* CSH 01/09/2000 Created
|
||||||
*/
|
*/
|
||||||
|
#include <socket.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <error.h>
|
#include <error.h>
|
||||||
#include <socket.h>
|
|
||||||
#include <iterator.h>
|
#include <iterator.h>
|
||||||
|
|
||||||
// ***************************** CSocket *****************************
|
// ***************************** CSocket *****************************
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
* - Implement more entity-header entries
|
* - Implement more entity-header entries
|
||||||
*/
|
*/
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
#include <iostream.h>
|
#include <iostream>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <http.h>
|
#include <http.h>
|
||||||
|
|
||||||
|
@ -192,9 +192,6 @@ BOOL CHttpParser::Parse()
|
||||||
{
|
{
|
||||||
BOOL bStatus;
|
BOOL bStatus;
|
||||||
|
|
||||||
|
|
||||||
CHAR ch;
|
|
||||||
|
|
||||||
if (RequestLine()) {
|
if (RequestLine()) {
|
||||||
do {
|
do {
|
||||||
if (!ReadString(sHeader, sizeof(sHeader)))
|
if (!ReadString(sHeader, sizeof(sHeader)))
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
#ifndef __CONFIG_H
|
#ifndef __CONFIG_H
|
||||||
#define __CONFIG_H
|
#define __CONFIG_H
|
||||||
|
|
||||||
#include <list.h>
|
|
||||||
#include <httpd.h>
|
#include <httpd.h>
|
||||||
|
#include <list.h>
|
||||||
|
|
||||||
// General constants
|
// General constants
|
||||||
#define APP_DESCRIPTION _T("ReactOS HTTP Daemon")
|
#define APP_DESCRIPTION _T("ReactOS HTTP Daemon")
|
||||||
|
@ -15,8 +15,8 @@
|
||||||
// Default configuration
|
// Default configuration
|
||||||
#define dcfgDescription _T("Default configuration")
|
#define dcfgDescription _T("Default configuration")
|
||||||
#define dcfgMainBase _T("C:\\roshttpd\\")
|
#define dcfgMainBase _T("C:\\roshttpd\\")
|
||||||
#define dcfgHttpBase "C:\\roshttpd\\HttpBase\\"
|
#define dcfgHttpBase _T("C:\\roshttpd\\HttpBase\\")
|
||||||
#define dcfgDefaultResource "index.html"
|
#define dcfgDefaultResource _T("index.html")
|
||||||
#define dcfgDefaultPort 80
|
#define dcfgDefaultPort 80
|
||||||
|
|
||||||
class CConfig {
|
class CConfig {
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#ifdef DBG
|
#ifdef DBG
|
||||||
#define DPRINT(x...) printf(x)
|
#define DPRINT(x, ...) printf(x)
|
||||||
#else
|
#else
|
||||||
#define DPRINT(x...)
|
#define DPRINT(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
#ifndef __HTTPD_H
|
#ifndef __HTTPD_H
|
||||||
#define __HTTPD_H
|
#define __HTTPD_H
|
||||||
|
|
||||||
#include <thread.h>
|
|
||||||
#include <socket.h>
|
#include <socket.h>
|
||||||
|
#include <thread.h>
|
||||||
#include <http.h>
|
#include <http.h>
|
||||||
|
|
||||||
#define HTTPD_START WM_USER + 1
|
#define HTTPD_START WM_USER + 1
|
||||||
|
|
|
@ -5,8 +5,7 @@
|
||||||
*/
|
*/
|
||||||
#ifndef __SOCKET_H
|
#ifndef __SOCKET_H
|
||||||
#define __SOCKET_H
|
#define __SOCKET_H
|
||||||
#include <msvcrt/stdio.h>
|
#include <stdio.h>
|
||||||
#include <windows.h>
|
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <thread.h>
|
#include <thread.h>
|
||||||
#include <list.h>
|
#include <list.h>
|
||||||
|
|
23
reactos/base/applications/network/roshttpd/roshttpd.rbuild
Normal file
23
reactos/base/applications/network/roshttpd/roshttpd.rbuild
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE project SYSTEM "tools/rbuild/project.dtd">
|
||||||
|
<module name="roshttpd" type="win32cui" installbase="system32" installname="roshttpd.exe" stdlib="host">
|
||||||
|
<include base="roshttpd">include</include>
|
||||||
|
<define name="__USE_W32API" />
|
||||||
|
<define name="__USE_W32_SOCKETS" />
|
||||||
|
<define name="_WIN32_IE">0x600</define>
|
||||||
|
<define name="_WIN32_WINNT">0x501</define>
|
||||||
|
<library>kernel32</library>
|
||||||
|
<library>ws2_32</library>
|
||||||
|
<library>kernel32</library>
|
||||||
|
<file>config.cpp</file>
|
||||||
|
<file>error.cpp</file>
|
||||||
|
<file>http.cpp</file>
|
||||||
|
<file>httpd.cpp</file>
|
||||||
|
<file>roshttpd.cpp</file>
|
||||||
|
<directory name="common" >
|
||||||
|
<file>list.cpp</file>
|
||||||
|
<file>roshttpd.rc</file>
|
||||||
|
<file>socket.cpp</file>
|
||||||
|
<file>thread.cpp</file>
|
||||||
|
</directory>
|
||||||
|
</module>
|
Loading…
Add table
Add a link
Reference in a new issue