summaryrefslogtreecommitdiff
path: root/comm/Socket.h
diff options
context:
space:
mode:
authorsc2000-11-28 17:07:47 +0000
committersc2000-11-28 17:07:47 +0000
commitee937667fd0ecd82faab4c88d756b906fb625f1a (patch)
tree19e679318b5cb87e8be1a05a7bbc9ba5568d0814 /comm/Socket.h
parent1326b11d65f7020f5f6c691305d2c090b064bd04 (diff)
downloadivy-league-ee937667fd0ecd82faab4c88d756b906fb625f1a.zip
ivy-league-ee937667fd0ecd82faab4c88d756b906fb625f1a.tar.gz
ivy-league-ee937667fd0ecd82faab4c88d756b906fb625f1a.tar.bz2
ivy-league-ee937667fd0ecd82faab4c88d756b906fb625f1a.tar.xz
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
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);