00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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
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
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
00045 int try_connect_to_server (const char *static_path);
00046 void disconnect_from_server();
00047
00048
00049 int peek_pipe();
00050 bool is_broken();
00051 bool notify_connection_lost();
00052 bool is_win9x();
00053 };
00054
00055 #endif