1
0

IPv6 support: fixed IP string getting on accept()

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1256 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft
2013-03-05 13:35:19 +00:00
parent ea750b9745
commit fcdc68fd8e
4 changed files with 23 additions and 17 deletions

View File

@@ -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);