diff options
Diffstat (limited to 'source/OSSupport/Socket.h')
-rw-r--r-- | source/OSSupport/Socket.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/OSSupport/Socket.h b/source/OSSupport/Socket.h index 7c051d229..ddaf7d8c0 100644 --- a/source/OSSupport/Socket.h +++ b/source/OSSupport/Socket.h @@ -77,8 +77,11 @@ public: /// Sets the socket to listen for incoming connections. Returns true if successful. bool Listen(int a_Backlog = DEFAULT_BACKLOG); - /// Accepts an incoming connection. Blocks if none available. - cSocket Accept(); + /// Accepts an IPv4 incoming connection. Blocks if none available. + cSocket AcceptIPv4(void); + + /// Accepts an IPv6 incoming connection. Blocks if none available. + cSocket AcceptIPv6(void); /// Connects to a localhost socket on the specified port using IPv4; returns true if successful. bool ConnectToLocalhostIPv4(unsigned short a_Port); |