From d9e858f2c682937760595df6f62d8544806758e2 Mon Sep 17 00:00:00 2001 From: chatty Date: Tue, 10 May 1994 11:17:29 +0000 Subject: Moved Accept from UchChannel Ok -> Ready --- comm/Socket.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'comm') diff --git a/comm/Socket.h b/comm/Socket.h index db84209..b534a90 100644 --- a/comm/Socket.h +++ b/comm/Socket.h @@ -32,26 +32,27 @@ protected: pUchAddress BAddr; pUchAddress CAddr; int AddrFamily; -public: - UchSocket (); + bool Ready; + +/*?public?*/ UchSocket (UchAddress*, UchAddress*); ~UchSocket (); UchSocket (const UchSocket& s); + +public: - UchChannel* Copy () const; -virtual int SockType (); // SOCK_UNSPEC, SOCK_STREAM, SOCK_DGRAM +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; } bool Open (); - int Bind (); - int Bind (UchAddress*); - int Connect (); - int Connect (UchAddress*); + int Bind (UchAddress* = 0); + int Connect (UchAddress* = 0); + int Accept (); bool Setup (); char* StrRepr (char* = StrReprBuf); }; -- cgit v1.1