From ee937667fd0ecd82faab4c88d756b906fb625f1a Mon Sep 17 00:00:00 2001 From: sc Date: Tue, 28 Nov 2000 17:07:47 +0000 Subject: 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 --- comm/Stream.cc | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'comm/Stream.cc') 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; -- cgit v1.1