| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 /* | 5 |
| 6 * SocketNativeWrapper is defined in native and holds a field to store the | |
| 7 * native socket object. | |
| 8 */ | |
| 9 class _SocketBase { | 6 class _SocketBase { |
| 10 | 7 |
| 11 /* | 8 /* |
| 12 * Keep these constants in sync with the native poll event identifiers. | 9 * Keep these constants in sync with the native poll event identifiers. |
| 13 */ | 10 */ |
| 14 static final int _IN_EVENT = 0; | 11 static final int _IN_EVENT = 0; |
| 15 static final int _OUT_EVENT = 1; | 12 static final int _OUT_EVENT = 1; |
| 16 static final int _ERROR_EVENT = 2; | 13 static final int _ERROR_EVENT = 2; |
| 17 static final int _CLOSE_EVENT = 3; | 14 static final int _CLOSE_EVENT = 3; |
| 18 static final int _FIRST_EVENT = _IN_EVENT; | 15 static final int _FIRST_EVENT = _IN_EVENT; |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 if (_outputStream == null) { | 284 if (_outputStream == null) { |
| 288 _outputStream = new SocketOutputStream(this); | 285 _outputStream = new SocketOutputStream(this); |
| 289 } | 286 } |
| 290 return _outputStream; | 287 return _outputStream; |
| 291 } | 288 } |
| 292 | 289 |
| 293 SocketInputStream _inputStream; | 290 SocketInputStream _inputStream; |
| 294 SocketOutputStream _outputStream; | 291 SocketOutputStream _outputStream; |
| 295 } | 292 } |
| 296 | 293 |
| OLD | NEW |