| 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_LINUX_H_ | 5 #ifndef BIN_EVENTHANDLER_LINUX_H_ |
| 6 #define BIN_EVENTHANDLER_LINUX_H_ | 6 #define BIN_EVENTHANDLER_LINUX_H_ |
| 7 | 7 |
| 8 #if !defined(BIN_EVENTHANDLER_H_) | 8 #if !defined(BIN_EVENTHANDLER_H_) |
| 9 #error Do not include eventhandler_linux.h directly; use eventhandler.h instead. | 9 #error Do not include eventhandler_linux.h directly; use eventhandler.h instead. |
| 10 #endif | 10 #endif |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 explicit Entry(const T& t) : t(t) {} | 79 explicit Entry(const T& t) : t(t) {} |
| 80 const T t; | 80 const T t; |
| 81 Entry* next_; | 81 Entry* next_; |
| 82 Entry* prev_; | 82 Entry* prev_; |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 Entry* head_; | 85 Entry* head_; |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 | 88 |
| 89 class ListeningSocketData; | |
| 90 class SocketData { | 89 class SocketData { |
| 91 public: | 90 public: |
| 92 explicit SocketData(intptr_t fd) | 91 explicit SocketData(intptr_t fd) |
| 93 : fd_(fd), port_(0), mask_(0), tokens_(16) { | 92 : fd_(fd), port_(0), mask_(0), tokens_(16) { |
| 94 ASSERT(fd_ != -1); | 93 ASSERT(fd_ != -1); |
| 95 } | 94 } |
| 96 | 95 |
| 97 virtual ~SocketData() { | 96 virtual ~SocketData() { |
| 98 } | 97 } |
| 99 | 98 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 bool shutdown_; | 292 bool shutdown_; |
| 294 int interrupt_fds_[2]; | 293 int interrupt_fds_[2]; |
| 295 int epoll_fd_; | 294 int epoll_fd_; |
| 296 int timer_fd_; | 295 int timer_fd_; |
| 297 }; | 296 }; |
| 298 | 297 |
| 299 } // namespace bin | 298 } // namespace bin |
| 300 } // namespace dart | 299 } // namespace dart |
| 301 | 300 |
| 302 #endif // BIN_EVENTHANDLER_LINUX_H_ | 301 #endif // BIN_EVENTHANDLER_LINUX_H_ |
| OLD | NEW |