00001 #ifndef _WINNT_NAMED_PIPE_H_
00002 #define _WINNT_NAMED_PIPE_H_
00003
00004 #include "OSDependent/OSDependent.h"
00005
00006
00007
00008
00009 class ClassExport NamedPipe {
00010 private:
00011 HANDLE _pipe;
00012 short _is_server;
00013
00014 public:
00015 NamedPipe();
00016 ~NamedPipe();
00017
00018 int create(const char *name, int mode);
00019 int connect(const char *name, int mode, long timeout = -1);
00020 long read(char *buffer, long size);
00021 long write(char *buffer, long size);
00022 void flush();
00023 };
00024
00025 #endif // _WINNT_NAMED_PIPE_H_