Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Beyond Protocol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Beyond AKA
Beyond Protocol
Commits
a893c9e6
Commit
a893c9e6
authored
2 years ago
by
Nicolas Pope
Browse files
Options
Downloads
Patches
Plain Diff
Use WSAPoll on windows
parent
3a406c4e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/universe.cpp
+5
-1
5 additions, 1 deletion
src/universe.cpp
with
5 additions
and
1 deletion
src/universe.cpp
+
5
−
1
View file @
a893c9e6
...
...
@@ -18,7 +18,7 @@
#include
"protocol/tcp.hpp"
#ifdef WIN32
#include
<winsock.h>
#include
<winsock
2
.h>
#include
<Ws2tcpip.h>
#endif
...
...
@@ -478,7 +478,11 @@ void Universe::_run() {
continue
;
}
#ifdef WIN32
selres
=
WSAPoll
(
impl_
->
pollfds
.
data
(),
impl_
->
pollfds
.
size
(),
100
);
#else
selres
=
poll
(
impl_
->
pollfds
.
data
(),
impl_
->
pollfds
.
size
(),
100
);
#endif
// NOTE Nick: Is it possible that not all the recvs have been called before I
// again reach a select call!? What are the consequences of this? A double recv attempt?
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment