summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorjxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-12 20:46:52 +0000
committerjxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-12 20:46:52 +0000
commit37c8b4d9a249aad3eb602949c1fa440260e2ad45 (patch)
tree47c6ec65993c005f74bfd2cfa251c55dad663f22 /apps
parent2420586b64cbf6ed36c9172e4795f73c30b74e72 (diff)
downloadATCD-37c8b4d9a249aad3eb602949c1fa440260e2ad45.tar.gz
Stubbed in an implementation for Asynch IO Handler.
Diffstat (limited to 'apps')
-rw-r--r--apps/JAWS/PROTOTYPE/JAWS/IO_Handler.h24
1 files changed, 17 insertions, 7 deletions
diff --git a/apps/JAWS/PROTOTYPE/JAWS/IO_Handler.h b/apps/JAWS/PROTOTYPE/JAWS/IO_Handler.h
index 80100cd7a8b..7e3de1d20ed 100644
--- a/apps/JAWS/PROTOTYPE/JAWS/IO_Handler.h
+++ b/apps/JAWS/PROTOTYPE/JAWS/IO_Handler.h
@@ -214,13 +214,13 @@ typedef ACE_Singleton<JAWS_Synch_IO_Handler_Factory, ACE_SYNCH_MUTEX>
class JAWS_Asynch_IO_Handler : protected JAWS_IO_Handler
{
public:
- JAWS_Asynch_IO_Handler (void);
+ JAWS_Asynch_IO_Handler (JAWS_IO_Handler_Factory *factory);
virtual ~JAWS_Asynch_IO_Handler (void);
protected:
// Inherited from JAWS_IO_Handler
- virtual void accept_complete (void);
+ virtual void accept_complete (ACE_HANDLE handle);
virtual void accept_error (void);
virtual void read_complete (ACE_Message_Block *data);
virtual void read_error (void);
@@ -231,19 +231,29 @@ protected:
virtual void write_error (void);
virtual void confirmation_message_complete (void);
virtual void error_message_complete (void);
- virtual JAWS_IO_Handler_Factory *factory (void);
virtual void task (JAWS_Pipeline_Handler *ph);
+
+ virtual JAWS_IO_Handler_Factory *factory (void);
+ virtual ACE_HANDLE handle (void);
+
+ virtual void done (void);
+ virtual int status (void);
virtual JAWS_Pipeline_Handler *task (void);
+ virtual void message_block (JAWS_Data_Block *mb);
+ virtual JAWS_Data_Block *message_block (void);
private:
- ACE_Message_Block *state_;
+ int status_;
+ // The state of the handler.
+
+ JAWS_Data_Block *mb_;
// This maintains the state of the request.
- JAWS_IO *io_;
- // The reference to our IO interface (synch vs. asynch)
+ ACE_HANDLE handle_;
+ // The socket handle returned from accept.
- JAWS_Pipeline *pipeline_;
+ JAWS_Pipeline_Handler *task_;
// This is a reference to the next stage of the pipeline when the IO
// request completes.