mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-18 00:15:27 +01:00
porting rev. 1916 from 1.4.4 branch (fixed SF# 3532311)
This commit is contained in:
parent
4328b7cba3
commit
e4baf46d7b
@ -306,6 +306,16 @@ public:
|
||||
static bool supportsIPv6();
|
||||
/// Returns true if the system supports IPv6.
|
||||
|
||||
void init(int af);
|
||||
/// Creates the underlying system socket for the given
|
||||
/// address family.
|
||||
///
|
||||
/// Normally, this method should not be called directly, as
|
||||
/// socket creation will be handled automatically. There are
|
||||
/// a few situations where calling this method after creation
|
||||
/// of the Socket object makes sense. One example is setting
|
||||
/// a socket option before calling bind() on a ServerSocket.
|
||||
|
||||
protected:
|
||||
Socket(SocketImpl* pImpl);
|
||||
/// Creates the Socket and attaches the given SocketImpl.
|
||||
@ -630,6 +640,13 @@ inline bool Socket::supportsIPv6()
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
inline void Socket::init(int af)
|
||||
{
|
||||
_pImpl->init(af);
|
||||
}
|
||||
|
||||
|
||||
} } // namespace Poco::Net
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user