summaryrefslogtreecommitdiff
path: root/comm/Message.cc
diff options
context:
space:
mode:
authorsc2000-11-28 17:07:47 +0000
committersc2000-11-28 17:07:47 +0000
commitee937667fd0ecd82faab4c88d756b906fb625f1a (patch)
tree19e679318b5cb87e8be1a05a7bbc9ba5568d0814 /comm/Message.cc
parent1326b11d65f7020f5f6c691305d2c090b064bd04 (diff)
downloadivy-league-ee937667fd0ecd82faab4c88d756b906fb625f1a.zip
ivy-league-ee937667fd0ecd82faab4c88d756b906fb625f1a.tar.gz
ivy-league-ee937667fd0ecd82faab4c88d756b906fb625f1a.tar.bz2
ivy-league-ee937667fd0ecd82faab4c88d756b906fb625f1a.tar.xz
Integration into IvyLeague
Uvh -> Ivl Multiplexer.* is renamed into Scheduler.* A few name conflicts in the merger with ex-DNN have been solved Imakefile is replaced by Makefile Created InetAddress.* and UnixAddress.* from Address.* Created IrdaAddress.* OLD/TextStream has been updated
Diffstat (limited to 'comm/Message.cc')
-rw-r--r--comm/Message.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/comm/Message.cc b/comm/Message.cc
index fea0d80..50b9ac1 100644
--- a/comm/Message.cc
+++ b/comm/Message.cc
@@ -18,19 +18,19 @@
#include "MsgStream.h"
#include "IOS.h"
-/*?class UchMessage
-\typ{UchMessage} is the abstract base class for messages.
+/*?class IvlMessage
+\typ{IvlMessage} is the abstract base class for messages.
Each subclass must redefine the virtual functions \fun{WriteTo} and \fun{ReadFrom},
so that messages can be added to and retrieved from buffers.
?*/
/*?nodoc?*/
-UchMessage :: UchMessage ()
+IvlMessage :: IvlMessage ()
{
}
/*?nodoc?*/
-UchMessage :: ~UchMessage ()
+IvlMessage :: ~IvlMessage ()
{
}
@@ -39,12 +39,12 @@ This virtual function must write a message into a buffer.
Usually, the implementation of this function in a derived class starts by calling
the same function of its base class, because a derived class inherits the fields
of its base class and adds its own fields.
-Data is usually appended to the buffer by the \fun{UchMsgBuffer::Append}
+Data is usually appended to the buffer by the \fun{IvlMsgBuffer::Append}
functions or \fun{operator $<<$}.
The default implementation does nothing.
?*/
void
-UchMessage :: WriteTo (UchIOS&)
+IvlMessage :: WriteTo (IvlIOS&)
{
}
@@ -54,12 +54,12 @@ At most \var{len} bytes should be read from the buffer.
Usually, the implementation of this function in a derived class starts by calling
the same function of its base class, because a derived class inherits the fields
of its base class and adds its own fields.
-Data is usually retrieved from the buffer by the \fun{UchMsgBuffer::Get}
+Data is usually retrieved from the buffer by the \fun{IvlMsgBuffer::Get}
functions or \fun{operator $>>$}.
The default implementation does nothing.
?*/
void
-UchMessage :: ReadFrom (UchIOS&, lword)
+IvlMessage :: ReadFrom (IvlIOS&, lword)
{
}
@@ -70,14 +70,14 @@ after they have been loaded from a buffer.
In this case an answer must be sent back with \fun{Reply}.
Messages can be sent before replying; they will be buffered by the receiver for later processing.
But you cannot use \fun{Ask} before replying.
-In the class \typ{UchMessage} this function does nothing and returns true;
+In the class \typ{IvlMessage} this function does nothing and returns true;
if \var{ask} is true, it replies immediately with an empty message.
?*/
bool
-UchMessage :: Activate (UchMsgStream& s, bool ask)
+IvlMessage :: Activate (IvlMsgStream& s, bool ask)
{
if (ask) {
- UchMessage dummy;
+ IvlMessage dummy;
s.Reply (dummy);
}
return true;