summaryrefslogtreecommitdiff
path: root/docs/tutorials/015/Protocol_Task.cpp
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-04-29 03:18:01 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-04-29 03:18:01 +0000
commitd34daff5868c618a047205d217857a64d4425dd9 (patch)
tree01e4e8356251ecf933d13ea646d16ca72fed18d4 /docs/tutorials/015/Protocol_Task.cpp
parent1b7ee19343cf09427ceb269c939215b64515ea70 (diff)
downloadATCD-pre_local_policies.tar.gz
This commit was manufactured by cvs2svn to create tagpre_local_policies
'pre_local_policies'.
Diffstat (limited to 'docs/tutorials/015/Protocol_Task.cpp')
-rw-r--r--docs/tutorials/015/Protocol_Task.cpp79
1 files changed, 0 insertions, 79 deletions
diff --git a/docs/tutorials/015/Protocol_Task.cpp b/docs/tutorials/015/Protocol_Task.cpp
deleted file mode 100644
index 6060fb1ddfa..00000000000
--- a/docs/tutorials/015/Protocol_Task.cpp
+++ /dev/null
@@ -1,79 +0,0 @@
-
-// $Id$
-
-#include "Protocol_Task.h"
-#include "ace/ACE.h"
-
-// Construct the object and remember the thread count.
-Protocol_Task::Protocol_Task(void)
-{
- ;
-}
-
-Protocol_Task::~Protocol_Task(void)
-{
- ;
-}
-
-int Protocol_Task::open(void *arg)
-{
- ACE_UNUSED_ARG(arg);
-
- return(0);
-}
-
-int Protocol_Task::close(u_long flags)
-{
- ACE_UNUSED_ARG(flags);
- return 0;
-}
-
-/* When a message is put() onto the task, it's time to process() some data.
-*/
-int Protocol_Task::put(ACE_Message_Block *message,ACE_Time_Value *timeout)
-{
- return this->process(message,timeout);
-}
-
-/* Return an error since we don't want the task to ever be activated.
- */
-int Protocol_Task::svc(void)
-{
- return -1;
-}
-
-/* There's nothing really magic about process(). We just decide if
- we're moving data upstream or downstream and invoke the appropriate
- virtual function to handle it.
-*/
-int Protocol_Task::process(ACE_Message_Block * message, ACE_Time_Value *timeout)
-{
- if( this->is_writer() )
- {
- return this->send(message,timeout);
- }
-
- return this->recv(message,timeout);
-}
-
-/* We must insist that derivatives provide a meaningful overload for
- these methods. It's fairly common for ACE object methods to return
- an error when an overload is expected but the method cannot be
- safely made pure virtual.
- */
-
-int Protocol_Task::send(ACE_Message_Block *message,
- ACE_Time_Value *timeout)
-{
- ACE_UNUSED_ARG(message);
- ACE_UNUSED_ARG(timeout);
- return -1;
-}
-
-int Protocol_Task::recv(ACE_Message_Block * message,
- ACE_Time_Value *timeout)
-{
- ACE_UNUSED_ARG(message);
- ACE_UNUSED_ARG(timeout);
- return -1;
-}