Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(573)

Unified Diff: runtime/bin/eventhandler_win.h

Issue 2803543006: Added synchronous socket implementation to dart:io. (Closed)
Patch Set: Addressed first round of comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/bin/eventhandler_win.cc » ('j') | runtime/bin/sync_socket.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler_win.h
diff --git a/runtime/bin/eventhandler_win.h b/runtime/bin/eventhandler_win.h
index 93dd44c3edc2d5cf8d337b5f71bcc39ad851d34e..112e541d243d397ebb3374ba599af68b87226466 100644
--- a/runtime/bin/eventhandler_win.h
+++ b/runtime/bin/eventhandler_win.h
@@ -446,12 +446,14 @@ class ListenSocket : public DescriptorInfoMultipleMixin<SocketHandle> {
// Information on connected sockets.
class ClientSocket : public DescriptorInfoSingleMixin<SocketHandle> {
public:
- explicit ClientSocket(intptr_t s)
+ explicit ClientSocket(intptr_t s, bool sync = false)
zra 2017/04/10 21:39:42 Let's remove the Windows implementation from this
bkonyi 2017/04/11 01:30:50 Thought I had done this before. Removed.
: DescriptorInfoSingleMixin(s, true),
DisconnectEx_(NULL),
next_(NULL),
connected_(false),
- closed_(false) {
+ closed_(false),
+ sync_(sync),
+ {
LoadDisconnectEx();
type_ = kClientSocket;
}
@@ -497,6 +499,7 @@ class ClientSocket : public DescriptorInfoSingleMixin<SocketHandle> {
ClientSocket* next_;
bool connected_;
bool closed_;
+ bool sync_;
#if defined(DEBUG)
static intptr_t disconnecting_;
« no previous file with comments | « no previous file | runtime/bin/eventhandler_win.cc » ('j') | runtime/bin/sync_socket.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698