Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vsnet_pipe.h
Go to the documentation of this file.
1 #ifndef VSNET_PIPE_H
2 #define VSNET_PIPE_H
3 
4 #include "vsnet_headers.h"
5 
6 class VSPipe
7 {
8 public: VSPipe();
9  int write( const char *buf, int size );
10  int read( char *buf, int size );
11  int closewrite();
12  int closeread();
13  int getread() const;
14  bool ok() const;
15 
16 private:
17  bool _failed;
18  int _pipe[2];
19 };
20 
21 #endif /* VSNET_PIPE_H */
22