summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--comm/Socket.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/comm/Socket.h b/comm/Socket.h
index db84209..b534a90 100644
--- a/comm/Socket.h
+++ b/comm/Socket.h
@@ -32,26 +32,27 @@ protected:
pUchAddress BAddr;
pUchAddress CAddr;
int AddrFamily;
-public:
- UchSocket ();
+ bool Ready;
+
+/*?public?*/
UchSocket (UchAddress*, UchAddress*);
~UchSocket ();
UchSocket (const UchSocket& s);
+
+public:
- UchChannel* Copy () const;
-virtual int SockType (); // SOCK_UNSPEC, SOCK_STREAM, SOCK_DGRAM
+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; }
bool Open ();
- int Bind ();
- int Bind (UchAddress*);
- int Connect ();
- int Connect (UchAddress*);
+ int Bind (UchAddress* = 0);
+ int Connect (UchAddress* = 0);
+ int Accept ();
bool Setup ();
char* StrRepr (char* = StrReprBuf);
};