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

Side by Side Diff: dart/sdk/lib/io/socket.dart

Issue 896213002: Revert "Introduce optional 'bool shared' parameter to ServerSocket.bind() ..." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 5 years, 10 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 part of dart.io; 5 part of dart.io;
6 6
7 7
8 /** 8 /**
9 * [InternetAddressType] is the type an [InternetAddress]. Currently, 9 * [InternetAddressType] is the type an [InternetAddress]. Currently,
10 * IP version 4 (IPv4) and IP version 6 (IPv6) are supported. 10 * IP version 4 (IPv4) and IP version 6 (IPv6) are supported.
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 * using the [:port:] getter. 220 * using the [:port:] getter.
221 * 221 *
222 * The optional argument [backlog] can be used to specify the listen 222 * The optional argument [backlog] can be used to specify the listen
223 * backlog for the underlying OS listen setup. If [backlog] has the 223 * backlog for the underlying OS listen setup. If [backlog] has the
224 * value of [:0:] (the default) a reasonable value will be chosen by 224 * value of [:0:] (the default) a reasonable value will be chosen by
225 * the system. 225 * the system.
226 */ 226 */
227 external static Future<RawServerSocket> bind(address, 227 external static Future<RawServerSocket> bind(address,
228 int port, 228 int port,
229 {int backlog: 0, 229 {int backlog: 0,
230 bool v6Only: false, 230 bool v6Only: false});
231 bool shared: false});
232 231
233 /** 232 /**
234 * Returns the port used by this socket. 233 * Returns the port used by this socket.
235 */ 234 */
236 int get port; 235 int get port;
237 236
238 /** 237 /**
239 * Returns the address used by this socket. 238 * Returns the address used by this socket.
240 */ 239 */
241 InternetAddress get address; 240 InternetAddress get address;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 * [port] getter. 311 * [port] getter.
313 * 312 *
314 * The optional argument [backlog] can be used to specify the listen 313 * The optional argument [backlog] can be used to specify the listen
315 * backlog for the underlying OS listen setup. If [backlog] has the 314 * backlog for the underlying OS listen setup. If [backlog] has the
316 * value of [:0:] (the default) a reasonable value will be chosen by 315 * value of [:0:] (the default) a reasonable value will be chosen by
317 * the system. 316 * the system.
318 */ 317 */
319 external static Future<ServerSocket> bind(address, 318 external static Future<ServerSocket> bind(address,
320 int port, 319 int port,
321 {int backlog: 0, 320 {int backlog: 0,
322 bool v6Only: false, 321 bool v6Only: false});
323 bool shared: false});
324 322
325 /** 323 /**
326 * Returns the port used by this socket. 324 * Returns the port used by this socket.
327 */ 325 */
328 int get port; 326 int get port;
329 327
330 /** 328 /**
331 * Returns the address used by this socket. 329 * Returns the address used by this socket.
332 */ 330 */
333 InternetAddress get address; 331 InternetAddress get address;
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 } 740 }
743 if (address != null) { 741 if (address != null) {
744 sb.write(", address = ${address.host}"); 742 sb.write(", address = ${address.host}");
745 } 743 }
746 if (port != null) { 744 if (port != null) {
747 sb.write(", port = $port"); 745 sb.write(", port = $port");
748 } 746 }
749 return sb.toString(); 747 return sb.toString();
750 } 748 }
751 } 749 }
OLDNEW
« no previous file with comments | « dart/sdk/lib/io/secure_server_socket.dart ('k') | dart/tests/standalone/io/socket_bind_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698