diff options
author | chatty | 2000-11-28 17:07:45 +0000 |
---|---|---|
committer | chatty | 2000-11-28 17:07:45 +0000 |
commit | be47ddbcc65b100c3634b5a4c35a89c8eac94a7e (patch) | |
tree | 5db5dd2c890ede8d2f8ae267d0f98cb58ceeec26 /comm/Socket.h | |
parent | f0540b018ae6c266126162a96abf70a4c7a2f53a (diff) | |
download | ivy-league-be47ddbcc65b100c3634b5a4c35a89c8eac94a7e.zip ivy-league-be47ddbcc65b100c3634b5a4c35a89c8eac94a7e.tar.gz ivy-league-be47ddbcc65b100c3634b5a4c35a89c8eac94a7e.tar.bz2 ivy-league-be47ddbcc65b100c3634b5a4c35a89c8eac94a7e.tar.xz |
* Removed Smart pointers
* Added ReuseAddress and AllowBroadcast
Diffstat (limited to 'comm/Socket.h')
-rw-r--r-- | comm/Socket.h | 14 |
1 files changed, 8 insertions, 6 deletions
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); }; |