summaryrefslogtreecommitdiff
path: root/src/SocketCore.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-06-11 21:25:19 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-06-11 21:25:19 +0900
commit2bbec1086d42f066690048ff5890cfeb1cad25e8 (patch)
tree3c85dfcf0f3ba9effa507c3410986cda228bae95 /src/SocketCore.h
parent2448a8660b1daa6ba9fced4b637c7c7468782aca (diff)
Use std::make_shared
Diffstat (limited to 'src/SocketCore.h')
-rw-r--r--src/SocketCore.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/SocketCore.h b/src/SocketCore.h
index bc6d1daa..de8e6cd2 100644
--- a/src/SocketCore.h
+++ b/src/SocketCore.h
@@ -111,9 +111,13 @@ private:
void setSockOpt(int level, int optname, void* optval, socklen_t optlen);
- SocketCore(sock_t sockfd, int sockType);
public:
SocketCore(int sockType = SOCK_STREAM);
+
+ // Formally, private constructor, but made public to use with
+ // std::make_shared.
+ SocketCore(sock_t sockfd, int sockType);
+
~SocketCore();
sock_t getSockfd() const { return sockfd_; }