summaryrefslogtreecommitdiff
path: root/cpp/lib/common/sys/Socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/lib/common/sys/Socket.h')
-rw-r--r--cpp/lib/common/sys/Socket.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/lib/common/sys/Socket.h b/cpp/lib/common/sys/Socket.h
index d793a240c6..e35ed5b07c 100644
--- a/cpp/lib/common/sys/Socket.h
+++ b/cpp/lib/common/sys/Socket.h
@@ -70,8 +70,11 @@ class Socket
*/
int listen(int port = 0, int backlog = 10);
+ /** Accept a connection. This socket must be listening */
+ Socket accept();
+
/** Get file descriptor */
- int fd();
+ int fd() const;
private:
#ifdef USE_APR