Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
f67e6a11
Commit
f67e6a11
authored
Jun 30, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build on MSVC
parent
30e05da5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
libcaf_io/src/default_multiplexer.cpp
libcaf_io/src/default_multiplexer.cpp
+2
-1
No files found.
libcaf_io/src/default_multiplexer.cpp
View file @
f67e6a11
...
@@ -186,6 +186,7 @@ expected<uint16_t> remote_port_of_fd(native_socket fd);
...
@@ -186,6 +186,7 @@ expected<uint16_t> remote_port_of_fd(native_socket fd);
expected
<
void
>
nonblocking
(
native_socket
fd
,
bool
new_value
)
{
expected
<
void
>
nonblocking
(
native_socket
fd
,
bool
new_value
)
{
u_long
mode
=
new_value
?
1
:
0
;
u_long
mode
=
new_value
?
1
:
0
;
CALL_CFUN
(
res
,
cc_zero
,
"ioctlsocket"
,
ioctlsocket
(
fd
,
FIONBIO
,
&
mode
));
CALL_CFUN
(
res
,
cc_zero
,
"ioctlsocket"
,
ioctlsocket
(
fd
,
FIONBIO
,
&
mode
));
return
unit
;
}
}
expected
<
void
>
allow_sigpipe
(
native_socket
,
bool
)
{
expected
<
void
>
allow_sigpipe
(
native_socket
,
bool
)
{
...
@@ -271,7 +272,7 @@ expected<uint16_t> remote_port_of_fd(native_socket fd);
...
@@ -271,7 +272,7 @@ expected<uint16_t> remote_port_of_fd(native_socket fd);
connect
(
read_fd
,
&
a
.
addr
,
connect
(
read_fd
,
&
a
.
addr
,
static_cast
<
int
>
(
sizeof
(
a
.
inaddr
))));
static_cast
<
int
>
(
sizeof
(
a
.
inaddr
))));
// get write-only end of the pipe
// get write-only end of the pipe
CALL_CRITICAL_CFUN
(
write_fd
,
"accept"
,
accept
(
listener
,
nullptr
,
nullptr
));
CALL_CRITICAL_CFUN
(
write_fd
,
cc_valid_socket
,
"accept"
,
accept
(
listener
,
nullptr
,
nullptr
));
closesocket
(
listener
);
closesocket
(
listener
);
guard
.
disable
();
guard
.
disable
();
return
std
::
make_pair
(
read_fd
,
write_fd
);
return
std
::
make_pair
(
read_fd
,
write_fd
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment