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

Side by Side Diff: sdk/lib/_internal/compiler/js_lib/io_patch.dart

Issue 908873002: Add support to specify the source address for socket connect (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added dart2js patch file 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 import 'dart:_js_helper' show patch; 5 import 'dart:_js_helper' show patch;
6 6
7 @patch 7 @patch
8 class _Directory { 8 class _Directory {
9 @patch 9 @patch
10 static _current() { 10 static _current() {
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 int port, 371 int port,
372 {int backlog: 0, 372 {int backlog: 0,
373 bool v6Only: false}) { 373 bool v6Only: false}) {
374 throw new UnsupportedError("ServerSocket.bind"); 374 throw new UnsupportedError("ServerSocket.bind");
375 } 375 }
376 } 376 }
377 377
378 @patch 378 @patch
379 class RawSocket { 379 class RawSocket {
380 @patch 380 @patch
381 static Future<RawSocket> connect(host, int port) { 381 static Future<RawSocket> connect(host, int port, {sourceAddress}) {
382 throw new UnsupportedError("RawSocket constructor"); 382 throw new UnsupportedError("RawSocket constructor");
383 } 383 }
384 } 384 }
385 385
386 @patch 386 @patch
387 class Socket { 387 class Socket {
388 @patch 388 @patch
389 static Future<Socket> connect(host, int port) { 389 static Future<Socket> connect(host, int port, {sourceAddress}) {
390 throw new UnsupportedError("Socket constructor"); 390 throw new UnsupportedError("Socket constructor");
391 } 391 }
392 } 392 }
393 393
394 @patch 394 @patch
395 class SecureSocket { 395 class SecureSocket {
396 @patch 396 @patch
397 factory SecureSocket._(RawSecureSocket rawSocket) { 397 factory SecureSocket._(RawSecureSocket rawSocket) {
398 throw new UnsupportedError("SecureSocket constructor"); 398 throw new UnsupportedError("SecureSocket constructor");
399 } 399 }
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 } 528 }
529 } 529 }
530 530
531 @patch 531 @patch
532 class _IOService { 532 class _IOService {
533 @patch 533 @patch
534 static Future _dispatch(int request, List data) { 534 static Future _dispatch(int request, List data) {
535 throw new UnsupportedError("_IOService._dispatch"); 535 throw new UnsupportedError("_IOService._dispatch");
536 } 536 }
537 } 537 }
OLDNEW
« no previous file with comments | « runtime/bin/socket_win.cc ('k') | sdk/lib/io/socket.dart » ('j') | sdk/lib/io/socket.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698