diff options
author | jxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-16 21:27:56 +0000 |
---|---|---|
committer | jxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-16 21:27:56 +0000 |
commit | c72003468d31f5b56ef994950a441332831db523 (patch) | |
tree | 19a2826c31357b3605129227037b10e4e128a005 /apps/JAWS/PROTOTYPE/JAWS/Server.cpp | |
parent | b59d9b053e4033fc59d6c1a8f3083c61317776de (diff) | |
download | ATCD-c72003468d31f5b56ef994950a441332831db523.tar.gz |
Debugging and functionality additions.
Diffstat (limited to 'apps/JAWS/PROTOTYPE/JAWS/Server.cpp')
-rw-r--r-- | apps/JAWS/PROTOTYPE/JAWS/Server.cpp | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/apps/JAWS/PROTOTYPE/JAWS/Server.cpp b/apps/JAWS/PROTOTYPE/JAWS/Server.cpp index 0ccd7f3a3c2..e5d041a21d9 100644 --- a/apps/JAWS/PROTOTYPE/JAWS/Server.cpp +++ b/apps/JAWS/PROTOTYPE/JAWS/Server.cpp @@ -82,41 +82,21 @@ JAWS_Server::open (JAWS_Pipeline_Handler *protocol, if (policy == 0) policy = &this->policy_; - JAWS_IO_Handler *handler; - JAWS_Data_Block *db; + JAWS_Data_Block db; ACE_INET_Addr inet_addr (this->port_); JAWS_IO_Synch_Acceptor_Singleton::instance ()->open (inet_addr); JAWS_IO_Asynch_Acceptor_Singleton::instance ()->open (inet_addr); - // initialize an IO_Handler - handler = policy->ioh_factory ()->create_io_handler (); - if (handler == 0) - { - policy->ioh_factory ()->destroy_io_handler (handler); - ACE_DEBUG ((LM_DEBUG, "JAWS_Server::open, can't create handler\n")); - return -1; - } - - handler->task (protocol); - // initialize data block - db = new JAWS_Data_Block; - if (db == 0) - { - policy->ioh_factory ()->destroy_io_handler (handler); - ACE_DEBUG ((LM_DEBUG, "JAWS_Server::open, can't create data block\n")); - return -1; - } - db->io_handler (handler); - db->task (JAWS_Pipeline_Accept_Task_Singleton::instance ()); - db->policy (policy); + db.task (JAWS_Pipeline_Accept_Task_Singleton::instance ()); + db.policy (policy); // The message block should contain an INET_Addr, and call the // io->accept (INET_Addr) method! - ACE_Message_Block mb (db); + ACE_Message_Block mb (&db); policy->concurrency ()->put (&mb); |