From 4fa78d11cd3c762e752ad2d2ed5baa522ee2f474 Mon Sep 17 00:00:00 2001 From: cxl Date: Fri, 7 Sep 2012 08:28:07 +0000 Subject: [PATCH] *Core: Copy constructor of TcpSocket now private git-svn-id: svn://ultimatepp.org/upp/trunk@5322 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Inet.h | 11 ++++++++--- uppsrc/packages1 | 3 --- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/uppsrc/Core/Inet.h b/uppsrc/Core/Inet.h index 3b15ee10c..99dc11a85 100644 --- a/uppsrc/Core/Inet.h +++ b/uppsrc/Core/Inet.h @@ -39,6 +39,8 @@ class IpAddrInfo { static auxthread_t auxthread__ Thread(void *ptr); void Start(); + + IpAddrInfo(const IpAddrInfo&); public: void Start(const String& host, int port); @@ -143,10 +145,12 @@ class TcpSocket { void SetSockError(const char *context, const char *errdesc); void SetSockError(const char *context); - static int GetErrorCode(); - bool WouldBlock(); - static void Init(); + bool WouldBlock(); + static int GetErrorCode(); + static void Init(); + + TcpSocket(const TcpSocket&); public: Callback WhenWait; @@ -225,6 +229,7 @@ public: class SocketWaitEvent { Vector< Tuple2 > socket; fd_set read[1], write[1], exception[1]; + SocketWaitEvent(const SocketWaitEvent &); public: void Clear() { socket.Clear(); } diff --git a/uppsrc/packages1 b/uppsrc/packages1 index 75ab9a829..e69de29bb 100644 --- a/uppsrc/packages1 +++ b/uppsrc/packages1 @@ -1,3 +0,0 @@ -Web -Web/TServ -Web/SSL