root/version_0/ext2/files.cpp

Revision 635, 2.0 kB (checked in by blackhedd, 1 year ago)

temporary branch to hold some code that isn't ready for prime time yet.
This will be deleted when no longer needed.

Line 
1 /*****************************************************************************
2
3 $Id: ed.cpp 250 2006-08-25 02:17:58Z blackhedd $
4
5 File:     files.cpp
6 Date:     26Aug06
7
8 Copyright (C) 2006-07 by Francis Cianfrocca. All Rights Reserved.
9 Gmail: blackhedd
10
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of either: 1) the GNU General Public License
13 as published by the Free Software Foundation; either version 2 of the
14 License, or (at your option) any later version; or 2) Ruby's License.
15
16 See the file COPYING for complete licensing information.
17
18 *****************************************************************************/
19
20 #include "project.h"
21
22
23 /******************************************
24 FileStreamDescriptor::FileStreamDescriptor
25 ******************************************/
26
27 FileStreamDescriptor::FileStreamDescriptor (int fd, EventMachine_t *em):
28         EventableDescriptor (fd, em),
29         OutboundDataSize (0)
30 {
31 cerr << "#####";
32 }
33
34
35 /*******************************************
36 FileStreamDescriptor::~FileStreamDescriptor
37 *******************************************/
38
39 FileStreamDescriptor::~FileStreamDescriptor()
40 {
41         // Run down any stranded outbound data.
42         for (size_t i=0; i < OutboundPages.size(); i++)
43                 OutboundPages[i].Free();
44 }
45
46
47 /**************************
48 FileStreamDescriptor::Read
49 **************************/
50
51 void FileStreamDescriptor::Read()
52 {
53 }
54
55 /***************************
56 FileStreamDescriptor::Write
57 ***************************/
58
59 void FileStreamDescriptor::Write()
60 {
61 }
62
63
64 /*******************************
65 FileStreamDescriptor::Heartbeat
66 *******************************/
67
68 void FileStreamDescriptor::Heartbeat()
69 {
70 }
71
72
73 /***********************************
74 FileStreamDescriptor::SelectForRead
75 ***********************************/
76
77 bool FileStreamDescriptor::SelectForRead()
78 {
79   cerr << "R?";
80   return false;
81 }
82
83
84 /************************************
85 FileStreamDescriptor::SelectForWrite
86 ************************************/
87
88 bool FileStreamDescriptor::SelectForWrite()
89 {
90   cerr << "W?";
91   return false;
92 }
93
94
Note: See TracBrowser for help on using the browser.