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

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

Issue 10993059: Stop using the Hashable interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
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 abstract class ServerSocket { 5 abstract class ServerSocket {
6 /** 6 /**
7 * Constructs a new server socket, binds it to a given address and port, 7 * Constructs a new server socket, binds it to a given address and port,
8 * and listens on it. 8 * and listens on it.
9 */ 9 */
10 factory ServerSocket(String bindAddress, int port, int backlog) { 10 factory ServerSocket(String bindAddress, int port, int backlog) {
(...skipping 16 matching lines...) Expand all
27 */ 27 */
28 int get port; 28 int get port;
29 29
30 /** 30 /**
31 * Closes the socket. 31 * Closes the socket.
32 */ 32 */
33 void close(); 33 void close();
34 } 34 }
35 35
36 36
37 abstract class Socket implements Hashable { 37 abstract class Socket {
Mads Ager (google) 2012/09/27 12:48:27 space
38 /** 38 /**
39 * Constructs a new socket and initiate connecting it to the given 39 * Constructs a new socket and initiate connecting it to the given
40 * host on the given port. The returned socket is not yet connected 40 * host on the given port. The returned socket is not yet connected
41 * but ready for registration of callbacks. 41 * but ready for registration of callbacks.
42 */ 42 */
43 factory Socket(String host, int port) => new _Socket(host, port); 43 factory Socket(String host, int port) => new _Socket(host, port);
44 44
45 /** 45 /**
46 * Returns the number of received and non-read bytes in the socket that 46 * Returns the number of received and non-read bytes in the socket that
47 * can be read. 47 * can be read.
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 sb.add(" ($osError)"); 148 sb.add(" ($osError)");
149 } 149 }
150 } else if (osError != null) { 150 } else if (osError != null) {
151 sb.add(": $osError"); 151 sb.add(": $osError");
152 } 152 }
153 return sb.toString(); 153 return sb.toString();
154 } 154 }
155 final String message; 155 final String message;
156 final OSError osError; 156 final OSError osError;
157 } 157 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698