From fcdc68fd8e777fa4c852acf7e471de914e4d7ee7 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Tue, 5 Mar 2013 13:35:19 +0000 Subject: IPv6 support: fixed IP string getting on accept() git-svn-id: http://mc-server.googlecode.com/svn/trunk@1256 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/OSSupport/Socket.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source/OSSupport/Socket.h') 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); -- cgit v1.2.3