Skip to content

Commit

Permalink
update vcpkg commit to 01f602195983451bc83e72f4214af2cbc495aa94
Browse files Browse the repository at this point in the history
  • Loading branch information
youyuanwu committed May 27, 2024
1 parent 65abb58 commit edcf086
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup vcpkg (it does not install any package yet)
uses: lukka/run-vcpkg@v11
with:
vcpkgGitCommitId: 486a4640db740f5994e492eb60748111dfc48de7
vcpkgGitCommitId: 01f602195983451bc83e72f4214af2cbc495aa94

- name: Get OpenCppCoverage
if: ${{ matrix.BUILD_TYPE == 'Debug' }}
Expand All @@ -48,8 +48,8 @@ jobs:
- name: Upload Report to Codecov
if: ${{ matrix.BUILD_TYPE == 'Debug' }}
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v4
with:
files: ./cobertura.xml
fail_ci_if_error: true
functionalities: fix
token: ${{ secrets.CODECOV_TOKEN }} # required
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ target_include_directories(winasio INTERFACE

# header only
target_compile_definitions(winasio
INTERFACE _WIN32_WINNT=0x0601
INTERFACE _WIN32_WINNT=0x0602
# INTERFACE WINASIO_LOG=1
)

Expand Down
8 changes: 6 additions & 2 deletions include/boost/winasio/named_pipe/named_pipe.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class named_pipe : public boost::asio::windows::basic_stream_handle<Executor> {
typedef std::string endpoint_type;
typedef boost::asio::windows::basic_stream_handle<executor_type> parent_type;

named_pipe(executor_type &ex)
named_pipe(const executor_type &ex)
: boost::asio::windows::basic_stream_handle<executor_type>(ex) {}

template <typename ExecutionContext>
Expand All @@ -50,6 +50,10 @@ class named_pipe : public boost::asio::windows::basic_stream_handle<Executor> {
: boost::asio::windows::basic_stream_handle<executor_type>(
context.get_executor()) {}

named_pipe(named_pipe<executor_type> &&other)
: boost::asio::windows::basic_stream_handle<executor_type>(
std::move(other)) {}

void server_create(boost::system::error_code &ec,
endpoint_type const &endpoint) {
const int bufsize = 512;
Expand Down Expand Up @@ -127,7 +131,7 @@ class named_pipe : public boost::asio::windows::basic_stream_handle<Executor> {
// used for client to connect
BOOST_ASIO_SYNC_OP_VOID connect(const endpoint_type &endpoint,
boost::system::error_code &ec,
int timeout_ms = 20000) {
std::uint32_t timeout_ms = 20000) {

if (boost::asio::windows::basic_stream_handle<executor_type>::is_open()) {
boost::asio::windows::basic_stream_handle<executor_type>::close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ namespace details {
// client connect to the namedpipe,
// return the ok handle. Caller is responsible for freeing the handle.
inline void client_connect(boost::system::error_code &ec, HANDLE &pipe_ret,
std::string const &endpoint, int timeout_ms) {
std::string const &endpoint,
std::uint32_t timeout_ms) {

HANDLE hPipe;
BOOL fSuccess = FALSE;
Expand Down

0 comments on commit edcf086

Please sign in to comment.