Initializes a new instance of the xtd::net::sockets::socket class using the specified address family, socket type and protocol.
- Parameters
-
- Exceptions
-
xtd::net:sockets::socket_exception | The combination of address_family, socket_type and protocol_type results in an invalid socket. |
- Note
- If this constructor throws a xtd::net::sockets::socket_exception, use the xtd::net::sockets::socket_exception::error_code property to obtain the specific error code. After you have obtained this code, refer to the Windows Sockets version 2 API error code documentation for a detailed description of the error.