ultimatepp/uppsrc/Web/Web.h
mdelfede 263ff5f895 changed svn layout
git-svn-id: svn://ultimatepp.org/upp/trunk@281 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-06-07 22:31:27 +00:00

47 lines
795 B
C

#ifndef WEB_H
#define WEB_H
#include <Core/Core.h>
//#include <RichText/RichText.h>
#if defined(PLATFORM_WIN32)
#define W_P(w, p) w
#if !defined(PLATFORM_CYGWIN)
#include <winsock2.h>
#endif
typedef int socklen_t;
#elif defined(PLATFORM_POSIX)
#define W_P(w, p) p
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
//#include <libiberty.h>
enum
{
INVALID_SOCKET = -1,
TCP_NODELAY = 1,
SD_RECEIVE = 0,
SD_SEND = 1,
SD_BOTH = 2,
};
typedef int SOCKET;
#else
#error Unsupported platform
#endif//PLATFORM switch
NAMESPACE_UPP
#include "util.h"
#include "html.h"
//#include "RichHtml.h"
#include "socket.h"
#include "httpsrv.h"
#include "httpcli.h"
#include "auth.h"
#include "smtp.h"
#include "sproc.h"
END_UPP_NAMESPACE
#endif