/***************************************************************************** $Id$ File: project.h Date: 06Apr06 Copyright (C) 2006-07 by Francis Cianfrocca. All Rights Reserved. Gmail: blackhedd This program is free software; you can redistribute it and/or modify it under the terms of either: 1) the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version; or 2) Ruby's License. See the file COPYING for complete licensing information. *****************************************************************************/ #ifndef __Project__H_ #define __Project__H_ #ifdef OS_WIN32 #pragma warning(disable:4786) #endif #include #include #include #include #include #include #include #include #ifdef OS_UNIX #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include typedef int SOCKET; #define closesocket close #define INVALID_SOCKET -1 #define SOCKET_ERROR -1 #ifdef OS_SOLARIS8 #include #include #ifndef AF_LOCAL #define AF_LOCAL AF_UNIX #endif // INADDR_NONE is undefined on Solaris < 8. Thanks to Brett Eisenberg and Tim Pease. #ifndef INADDR_NONE #define INADDR_NONE ((unsigned long)-1) #endif #endif #endif #ifdef OS_WIN32 #define WIN32_LEAN_AND_MEAN #include #include #include #include #include #include typedef int socklen_t; typedef int pid_t; #endif using namespace std; #ifdef WITH_SSL #include #include #endif #ifdef HAVE_EPOLL #include #endif #ifdef HAVE_KQUEUE #include #include #endif #include "binder.h" #include "em.h" #include "epoll.h" #include "sigs.h" #include "ed.h" #include "files.h" #include "page.h" #include "ssl.h" #include "eventmachine.h" #include "eventmachine_cpp.h" #endif // __Project__H_