summaryrefslogtreecommitdiff
path: root/comm/Socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'comm/Socket.h')
-rw-r--r--comm/Socket.h26
1 files changed, 14 insertions, 12 deletions
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);