summaryrefslogtreecommitdiff
path: root/comm/Socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'comm/Socket.h')
-rw-r--r--comm/Socket.h14
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);
};