diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-06-18 19:42:34 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-06-18 19:42:34 +0000 |
commit | 8b12972092777af56ae21f65b41f4c40d52c2367 (patch) | |
tree | 3ee45c4b69899acb0cdbd013ea8e6ea54bcdc023 /src/file.cpp | |
parent | 5292e5831934dc719d1ac06332bd252abe4ac3bc (diff) | |
download | libbu++-8b12972092777af56ae21f65b41f4c40d52c2367.tar.gz libbu++-8b12972092777af56ae21f65b41f4c40d52c2367.tar.bz2 libbu++-8b12972092777af56ae21f65b41f4c40d52c2367.tar.xz libbu++-8b12972092777af56ae21f65b41f4c40d52c2367.zip |
Added the protocol class. servers work, but don't send data, updated the streams
to include many more state indicators and caps queries, and everything is
working better in general.
Diffstat (limited to 'src/file.cpp')
-rw-r--r-- | src/file.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/file.cpp b/src/file.cpp index 2965afa..368b788 100644 --- a/src/file.cpp +++ b/src/file.cpp | |||
@@ -109,7 +109,17 @@ bool Bu::File::canWrite() | |||
109 | return true; | 109 | return true; |
110 | } | 110 | } |
111 | 111 | ||
112 | bool Bu::File::canSeek() | 112 | bool Bu::File::isReadable() |
113 | { | ||
114 | return true; | ||
115 | } | ||
116 | |||
117 | bool Bu::File::isWritable() | ||
118 | { | ||
119 | return true; | ||
120 | } | ||
121 | |||
122 | bool Bu::File::isSeekable() | ||
113 | { | 123 | { |
114 | return true; | 124 | return true; |
115 | } | 125 | } |
@@ -139,3 +149,8 @@ void Bu::File::chmod( mode_t t ) | |||
139 | fchmod( fileno( fh ), t ); | 149 | fchmod( fileno( fh ), t ); |
140 | } | 150 | } |
141 | 151 | ||
152 | bool Bu::File::isOpen() | ||
153 | { | ||
154 | return (fh != NULL); | ||
155 | } | ||
156 | |||