From be47ddbcc65b100c3634b5a4c35a89c8eac94a7e Mon Sep 17 00:00:00 2001 From: chatty Date: Tue, 28 Nov 2000 17:07:45 +0000 Subject: * Removed Smart pointers * Added ReuseAddress and AllowBroadcast --- comm/Socket.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'comm/Socket.h') diff --git a/comm/Socket.h b/comm/Socket.h index b534a90..7c0e323 100644 --- a/comm/Socket.h +++ b/comm/Socket.h @@ -3,7 +3,7 @@ * * by Michel Beaudouin-Lafon * - * Copyright 1990-1993 + * Copyright 1990-1997 * Laboratoire de Recherche en Informatique (LRI) * * Sockets @@ -19,7 +19,7 @@ #include "Channel.h" #include "Address.h" -extern char* StrReprBuf; +extern char* StrReprBuf; #define SOCK_UNSPEC 0 @@ -29,15 +29,15 @@ extern char* StrReprBuf; // class UchSocket : public UchChannel { protected: - pUchAddress BAddr; - pUchAddress CAddr; + UchAddress* BAddr; + UchAddress* CAddr; int AddrFamily; - bool Ready; + bool Ready; /*?public?*/ UchSocket (UchAddress*, UchAddress*); - ~UchSocket (); UchSocket (const UchSocket& s); + ~UchSocket (); public: @@ -54,6 +54,8 @@ inline UchAddress* ConnectedTo () { return CAddr; } int Connect (UchAddress* = 0); int Accept (); bool Setup (); + bool ReuseAddress (bool = true); + bool AllowBroadcast (bool = true); char* StrRepr (char* = StrReprBuf); }; -- cgit v1.1