summaryrefslogtreecommitdiff
path: root/comm
diff options
context:
space:
mode:
authorchatty1994-05-10 11:17:29 +0000
committerchatty1994-05-10 11:17:29 +0000
commitd9e858f2c682937760595df6f62d8544806758e2 (patch)
treeaa92c255c77de69390519f0673a091595294cb0e /comm
parentcca1cb8ea9a36199c399f2c30b55e6dfbc9efdd4 (diff)
downloadivy-league-d9e858f2c682937760595df6f62d8544806758e2.zip
ivy-league-d9e858f2c682937760595df6f62d8544806758e2.tar.gz
ivy-league-d9e858f2c682937760595df6f62d8544806758e2.tar.bz2
ivy-league-d9e858f2c682937760595df6f62d8544806758e2.tar.xz
Moved Accept from UchChannel
Ok -> Ready
Diffstat (limited to 'comm')
-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);
};