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

Side by Side Diff: runtime/bin/eventhandler_win.h

Issue 908873002: Add support to specify the source address for socket connect (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added dart2js patch file Created 5 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/bin/eventhandler_win.cc » ('j') | sdk/lib/io/socket.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef BIN_EVENTHANDLER_WIN_H_ 5 #ifndef BIN_EVENTHANDLER_WIN_H_
6 #define BIN_EVENTHANDLER_WIN_H_ 6 #define BIN_EVENTHANDLER_WIN_H_
7 7
8 #if !defined(BIN_EVENTHANDLER_H_) 8 #if !defined(BIN_EVENTHANDLER_H_)
9 #error Do not include eventhandler_win.h directly; use eventhandler.h instead. 9 #error Do not include eventhandler_win.h directly; use eventhandler.h instead.
10 #endif 10 #endif
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 virtual bool IsClosed(); 451 virtual bool IsClosed();
452 452
453 ClientSocket* next() { return next_; } 453 ClientSocket* next() { return next_; }
454 void set_next(ClientSocket* next) { next_ = next; } 454 void set_next(ClientSocket* next) { next_ = next; }
455 455
456 void mark_connected() { 456 void mark_connected() {
457 connected_ = true; 457 connected_ = true;
458 } 458 }
459 bool is_connected() const { return connected_; } 459 bool is_connected() const { return connected_; }
460 460
461 void mark_closed() {
462 closed_ = true;
463 }
464
461 private: 465 private:
462 bool LoadDisconnectEx(); 466 bool LoadDisconnectEx();
463 467
464 LPFN_DISCONNECTEX DisconnectEx_; 468 LPFN_DISCONNECTEX DisconnectEx_;
465 ClientSocket* next_; 469 ClientSocket* next_;
466 bool connected_; 470 bool connected_;
467 bool closed_; 471 bool closed_;
468 }; 472 };
469 473
470 474
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 528
525 TimeoutQueue timeout_queue_; // Time for next timeout. 529 TimeoutQueue timeout_queue_; // Time for next timeout.
526 bool shutdown_; 530 bool shutdown_;
527 HANDLE completion_port_; 531 HANDLE completion_port_;
528 }; 532 };
529 533
530 } // namespace bin 534 } // namespace bin
531 } // namespace dart 535 } // namespace dart
532 536
533 #endif // BIN_EVENTHANDLER_WIN_H_ 537 #endif // BIN_EVENTHANDLER_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/eventhandler_win.cc » ('j') | sdk/lib/io/socket.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698