mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-25 15:19:21 +01:00
porting rev. 1916 from 1.4.4 branch (fixed SF# 3532311)
This commit is contained in:
@@ -306,6 +306,16 @@ public:
|
|||||||
static bool supportsIPv6();
|
static bool supportsIPv6();
|
||||||
/// Returns true if the system supports IPv6.
|
/// 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:
|
protected:
|
||||||
Socket(SocketImpl* pImpl);
|
Socket(SocketImpl* pImpl);
|
||||||
/// Creates the Socket and attaches the given SocketImpl.
|
/// Creates the Socket and attaches the given SocketImpl.
|
||||||
@@ -630,6 +640,13 @@ inline bool Socket::supportsIPv6()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
inline void Socket::init(int af)
|
||||||
|
{
|
||||||
|
_pImpl->init(af);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} } // namespace Poco::Net
|
} } // namespace Poco::Net
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user