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

Side by Side Diff: runtime/bin/socket_impl.dart

Issue 8399033: First round of changes to the file interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 9 years, 1 month 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 | « runtime/bin/socket.cc ('k') | samples/chat/chat_server_lib.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « runtime/bin/socket.cc ('k') | samples/chat/chat_server_lib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698