Changeset 17 for abuse/trunk/src/net/include/fileman.hpp
- Timestamp:
- Nov 10, 2005, 9:41:13 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/net/include/fileman.hpp
r4 r17 20 20 21 21 nfs_client *next; 22 longsize_to_read;23 longsize;22 int32_t size_to_read; 23 int32_t size; 24 24 nfs_client(net_socket *sock, int file_fd, nfs_client *next); 25 25 int send_read(); // flushes as much of size_to_read as possible … … 33 33 net_socket *sock; 34 34 void r_close(char *reason); 35 longsize; // server tells us the size of the file when we open it35 int32_t size; // server tells us the size of the file when we open it 36 36 int open_local; 37 37 remote_file *next; … … 40 40 int unbuffered_read(void *buffer, size_t count); 41 41 int unbuffered_write(void *buf, size_t count) { return 0; } // not supported 42 longunbuffered_tell();43 long unbuffered_seek(longoffset);44 longfile_size() { return size; }42 int32_t unbuffered_tell(); 43 int32_t unbuffered_seek(int32_t offset); 44 int32_t file_size() { return size; } 45 45 int open_failure() { return sock==NULL; } 46 46 ~remote_file(); … … 64 64 65 65 int rf_open_file(char *&filename, char *mode); 66 longrf_tell(int fd);67 long rf_seek(int fd, longoffset);66 int32_t rf_tell(int fd); 67 int32_t rf_seek(int fd, int32_t offset); 68 68 int rf_read(int fd, void *buffer, size_t count); 69 69 int rf_close(int fd); 70 longrf_file_size(int fd);70 int32_t rf_file_size(int fd); 71 71 void set_default_fs(net_address *def) { default_fs=def->copy(); } 72 72 ~file_manager() { if (default_fs) delete default_fs; }
Note: See TracChangeset
for help on using the changeset viewer.