Skip to content

Commit 2039f33

Browse files
dongyaoshengklemens-morgenstern
authored andcommitted
export socket open/close/cancel/is_open
1 parent cecc81c commit 2039f33

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/boost/cobalt/io/socket.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ namespace boost::cobalt::io
2020

2121
struct BOOST_SYMBOL_VISIBLE socket
2222
{
23-
[[nodiscard]] system::result<void> open(protocol_type prot = protocol_type {});
24-
[[nodiscard]] system::result<void> close();
25-
[[nodiscard]] system::result<void> cancel();
26-
[[nodiscard]] bool is_open() const;
23+
[[nodiscard]] BOOST_COBALT_IO_DECL system::result<void> open(protocol_type prot = protocol_type {});
24+
[[nodiscard]] BOOST_COBALT_IO_DECL system::result<void> close();
25+
[[nodiscard]] BOOST_COBALT_IO_DECL system::result<void> cancel();
26+
[[nodiscard]] BOOST_COBALT_IO_DECL bool is_open() const;
2727

2828
// asio acceptor compatibility
2929
template<typename T>

0 commit comments

Comments
 (0)