summaryrefslogtreecommitdiff
path: root/comm/Stream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'comm/Stream.cc')
-rw-r--r--comm/Stream.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/comm/Stream.cc b/comm/Stream.cc
index 16f6bc7..02682ad 100644
--- a/comm/Stream.cc
+++ b/comm/Stream.cc
@@ -22,9 +22,9 @@ extern "C" {
}
#endif
-/*?class UchStream
+/*?class IvlStream
Streams implement reliable point to point connections.
-UchStream connections do not keep the message boundaries:
+IvlStream connections do not keep the message boundaries:
several messages can be read at a time, and a message can be read in several parts.
Establishing a stream connection is not a symmetric operation:
@@ -38,40 +38,40 @@ Because a server has to listen to pending connections and communicate
with its connected clients, using a channel set is highly recommended:
when a connection is pending, the channel is ready for reading,
and you can accept the connection with \fun{SockAccept} (instead of reading data).
-Note that because \typ{UchStream} derives from \typ{UchSocket}
-and thus from \typ{UchChannel}, the virtual functions
+Note that because \typ{IvlStream} derives from \typ{IvlSocket}
+and thus from \typ{IvlChannel}, the virtual functions
\fun{HandleRead} and \fun{HandeWrite} can be used.
?*/
/*?
-This constructor is similar to that of the class \typ{UchSocket}.
+This constructor is similar to that of the class \typ{IvlSocket}.
?*/
-UchStream :: UchStream (UchAddress* bound, UchAddress* connected)
-: UchSocket (bound, connected)
+IvlStream :: IvlStream (IvlAddress* bound, IvlAddress* connected)
+: IvlSocket (bound, connected)
{
}
/*?nodoc?*/
-UchStream :: UchStream (const UchStream& s)
-: UchSocket (s)
+IvlStream :: IvlStream (const IvlStream& s)
+: IvlSocket (s)
{
}
/*?nodoc?*/
-UchStream :: ~UchStream ()
+IvlStream :: ~IvlStream ()
{
}
/*?nodoc?*/
-UchChannel*
-UchStream :: Copy () const
+IvlChannel*
+IvlStream :: Copy () const
{
- return new UchStream (*this);
+ return new IvlStream (*this);
}
/*?nodoc?*/
int
-UchStream :: SockType ()
+IvlStream :: SockType ()
{
return SOCK_STREAM;
}
@@ -88,7 +88,7 @@ The returned value is that of the system call, unless the set up failed in which
Note that it is useless to listen on a socket if it is not bound to an address.
?*/
int
-UchStream :: Listen (int n)
+IvlStream :: Listen (int n)
{
if (! Setup ())
return -1;