| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |