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/Socket.h | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'comm/Socket.h') diff --git a/comm/Socket.h b/comm/Socket.h index 7c0e323..82e1669 100644 --- a/comm/Socket.h +++ b/comm/Socket.h @@ -10,6 +10,8 @@ * * $Id$ * $CurLog$ + * Removed Smart pointers + * Added ReuseAddress and AllowBroadcast */ #ifndef Socket_H_ @@ -27,17 +29,17 @@ extern char* StrReprBuf; // A socket is a channel and an address. // As a channel, it is immutable, and must be initialized once and for all at creation. // -class UchSocket : public UchChannel { +class IvlSocket : public IvlChannel { protected: - UchAddress* BAddr; - UchAddress* CAddr; + IvlAddress* BAddr; + IvlAddress* CAddr; int AddrFamily; bool Ready; /*?public?*/ - UchSocket (UchAddress*, UchAddress*); - UchSocket (const UchSocket& s); - ~UchSocket (); + IvlSocket (IvlAddress*, IvlAddress*); + IvlSocket (const IvlSocket& s); + ~IvlSocket (); public: @@ -45,13 +47,13 @@ virtual int SockType () = 0; inline int Family () { return AddrFamily; } inline void SetFamily (int f) { AddrFamily = f; } inline bool IsReady () const { return Ready; } - void BindTo (UchAddress*); - void ConnectTo (UchAddress*); -inline UchAddress* BoundTo () { return BAddr; } -inline UchAddress* ConnectedTo () { return CAddr; } + void BindTo (IvlAddress*); + void ConnectTo (IvlAddress*); +inline IvlAddress* BoundTo () { return BAddr; } +inline IvlAddress* ConnectedTo () { return CAddr; } bool Open (); - int Bind (UchAddress* = 0); - int Connect (UchAddress* = 0); + int Bind (IvlAddress* = 0); + int Connect (IvlAddress* = 0); int Accept (); bool Setup (); bool ReuseAddress (bool = true); -- cgit v1.1