Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
495a2228
Commit
495a2228
authored
Sep 20, 2009
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MSVC warnings removed
parent
f99b8fc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
fd_signaler.cpp
src/fd_signaler.cpp
+4
-7
No files found.
src/fd_signaler.cpp
View file @
495a2228
...
...
@@ -85,11 +85,8 @@ zmq::fd_t zmq::fd_signaler_t::get_fd ()
zmq
::
fd_signaler_t
::
fd_signaler_t
()
{
// Windows have no 'socketpair' function.
// Here we create the socketpair by hand.
// TODO: Check Windows pipe (CreatePipe). It'll presumably be more
// efficient than the socketpair.
// Windows have no 'socketpair' function. CreatePipe is no good as pipe
// handles cannot be polled on. Here we create the socketpair by hand.
struct
sockaddr_in
addr
;
SOCKET
listener
;
...
...
@@ -157,7 +154,7 @@ uint64_t zmq::fd_signaler_t::poll ()
// If there are no signals, wait until at least one signal arrives.
unsigned
char
sig
;
int
nbytes
=
recv
(
r
,
&
sig
,
1
,
MSG_WAITALL
);
int
nbytes
=
recv
(
r
,
(
char
*
)
&
sig
,
1
,
MSG_WAITALL
);
win_assert
(
nbytes
!=
-
1
);
return
uint64_t
(
1
)
<<
sig
;
}
...
...
@@ -165,7 +162,7 @@ uint64_t zmq::fd_signaler_t::poll ()
uint64_t
zmq
::
fd_signaler_t
::
check
()
{
unsigned
char
buffer
[
32
];
int
nbytes
=
recv
(
r
,
buffer
,
32
,
0
);
int
nbytes
=
recv
(
r
,
(
char
*
)
buffer
,
32
,
0
);
win_assert
(
nbytes
!=
-
1
);
uint64_t
signals
=
0
;
...
...
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