|
200 | 200 | \rSec2[socket.reqmts.native]{Native handles}
|
201 | 201 |
|
202 | 202 | \pnum
|
203 |
| -Several classes described in this Technical Specification have a member type \tcode{native_handle_type}, a member function \tcode{native_handle}, and member functions that accept arguments of type \tcode{native_handle_type}. The presence of these members and their semantics is |
| 203 | +Several classes described in this Technical Specification have a member type \tcode{native_handle_type}, a member function \tcode{native_handle}, and member functions that return or accept arguments of type \tcode{native_handle_type}. The presence of these members and their semantics is |
204 | 204 | \impldef{presence and meaning of \tcode{native_handle_type} and \tcode{native_handle}}.
|
205 | 205 |
|
206 | 206 | \pnum
|
|
1460 | 1460 | const native_handle_type& native_socket,
|
1461 | 1461 | error_code& ec); // \nativeref
|
1462 | 1462 |
|
| 1463 | + native_handle_type release(); // \nativeref |
| 1464 | + native_handle_type release(error_code& ec); // \nativeref |
| 1465 | + |
1463 | 1466 | bool is_open() const noexcept;
|
1464 | 1467 |
|
1465 | 1468 | void close();
|
|
1871 | 1874 | \end{itemize}
|
1872 | 1875 | \end{itemdescr}
|
1873 | 1876 |
|
| 1877 | +\begin{itemdecl} |
| 1878 | +native_handle_type release(); |
| 1879 | +native_handle_type release(error_code& ec); |
| 1880 | +\end{itemdecl} |
| 1881 | + |
| 1882 | +\begin{itemdescr} |
| 1883 | +\pnum |
| 1884 | +\requires \tcode{is_open() == true}. |
| 1885 | + |
| 1886 | +\pnum |
| 1887 | +\effects Cancels all outstanding asynchronous operations associated with this socket. |
| 1888 | +Completion handlers for canceled asynchronous operations are passed an error code \tcode{ec} |
| 1889 | +such that \tcode{ec == errc::operation_canceled} yields \tcode{true}. |
| 1890 | + |
| 1891 | +\pnum |
| 1892 | +\returns The native representation of this socket. |
| 1893 | + |
| 1894 | +\pnum |
| 1895 | +\postconditions \tcode{is_open() == false}. |
| 1896 | + |
| 1897 | +\pnum |
| 1898 | +\remarks Since the native socket is not closed prior to returning it, |
| 1899 | +the caller is responsible for closing it. |
| 1900 | +\end{itemdescr} |
| 1901 | + |
1874 | 1902 | \begin{itemdecl}
|
1875 | 1903 | bool is_open() const noexcept;
|
1876 | 1904 | \end{itemdecl}
|
|
3397 | 3425 | const native_handle_type& native_acceptor,
|
3398 | 3426 | error_code& ec); // \nativeref
|
3399 | 3427 |
|
| 3428 | + native_handle_type release(); // \nativeref |
| 3429 | + native_handle_type release(error_code& ec); // \nativeref |
| 3430 | + |
3400 | 3431 | bool is_open() const;
|
3401 | 3432 |
|
3402 | 3433 | void close();
|
|
3827 | 3858 | \end{itemize}
|
3828 | 3859 | \end{itemdescr}
|
3829 | 3860 |
|
| 3861 | +\begin{itemdecl} |
| 3862 | +native_handle_type release(); |
| 3863 | +native_handle_type release(error_code& ec); |
| 3864 | +\end{itemdecl} |
| 3865 | + |
| 3866 | +\begin{itemdescr} |
| 3867 | +\pnum |
| 3868 | +\requires \tcode{is_open() == true}. |
| 3869 | + |
| 3870 | +\pnum |
| 3871 | +\effects Cancels all outstanding asynchronous operations associated with this acceptor. |
| 3872 | +Completion handlers for canceled asynchronous operations are passed an error code \tcode{ec} |
| 3873 | +such that \tcode{ec == errc::operation_canceled} yields \tcode{true}. |
| 3874 | + |
| 3875 | +\pnum |
| 3876 | +\returns The native representation of this acceptor. |
| 3877 | + |
| 3878 | +\pnum |
| 3879 | +\postconditions \tcode{is_open() == false}. |
| 3880 | + |
| 3881 | +\pnum |
| 3882 | +\remarks Since the native acceptor is not closed prior to returning it, |
| 3883 | +the caller is responsible for closing it. |
| 3884 | +\end{itemdescr} |
| 3885 | + |
3830 | 3886 | \begin{itemdecl}
|
3831 | 3887 | bool is_open() const;
|
3832 | 3888 | \end{itemdecl}
|
|
0 commit comments