servewin32.h

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 2002 The Exult Team
00003 
00004 This program is free software; you can redistribute it and/or
00005 modify it under the terms of the GNU General Public License
00006 as published by the Free Software Foundation; either version 2
00007 of the License, or (at your option) any later version.
00008 
00009 This program is distributed in the hope that it will be useful,
00010 but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 GNU General Public License for more details.
00013 
00014 You should have received a copy of the GNU General Public License
00015 along with this program; if not, write to the Free Software
00016 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00017 
00018 */
00019 
00020 // Win32 Only file
00021 
00022 #ifdef WIN32
00023 
00024 #ifndef WIN32_LEAN_AND_MEAN
00025 #define WIN32_LEAN_AND_MEAN
00026 #endif
00027 
00028 #include <windows.h>
00029 
00030 namespace Exult_server
00031 {
00032   // Hack functions
00033   int write(int file, const void *v, unsigned int len);
00034   int read(int file, void *v, unsigned int len);
00035   int close(int file);
00036 
00037   // Server Functions
00038   bool create_pipe (const char *static_path); 
00039   void setup_connect();
00040   bool try_connect_to_client(const char *static_path);
00041   void disconnect_from_client();
00042   void close_pipe();
00043 
00044   // Client Functions
00045   int try_connect_to_server (const char *static_path);
00046   void disconnect_from_server();
00047 
00048   // General Functions
00049   int peek_pipe();
00050   bool is_broken();
00051   bool notify_connection_lost();
00052   bool is_win9x();
00053 };
00054 
00055 #endif

Generated on Mon Jul 9 14:42:50 2007 for ExultEngine by  doxygen 1.5.1