| OLD | NEW |
| 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 patch class RawServerSocket { | 5 patch class RawServerSocket { |
| 6 /* patch */ static Future<RawServerSocket> bind([String address = "127.0.0.1", | 6 /* patch */ static Future<RawServerSocket> bind([String address = "127.0.0.1", |
| 7 int port = 0, | 7 int port = 0, |
| 8 int backlog = 0]) { | 8 int backlog = 0]) { |
| 9 return _RawServerSocket.bind(address, port, backlog); | 9 return _RawServerSocket.bind(address, port, backlog); |
| 10 } | 10 } |
| (...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 void onDone(), | 757 void onDone(), |
| 758 bool unsubscribeOnError}) { | 758 bool unsubscribeOnError}) { |
| 759 return _controller.stream.listen( | 759 return _controller.stream.listen( |
| 760 onData, | 760 onData, |
| 761 onError: onError, | 761 onError: onError, |
| 762 onDone: onDone, | 762 onDone: onDone, |
| 763 unsubscribeOnError: unsubscribeOnError); | 763 unsubscribeOnError: unsubscribeOnError); |
| 764 } | 764 } |
| 765 | 765 |
| 766 Encoding get encoding => _sink.encoding; | 766 Encoding get encoding => _sink.encoding; |
| 767 void set encoding(Encoding value) => _sink.encoding = value; | 767 |
| 768 void set encoding(Encoding value) { |
| 769 _sink.encoding = value; |
| 770 } |
| 768 | 771 |
| 769 void write(Object obj) => _sink.write(obj); | 772 void write(Object obj) => _sink.write(obj); |
| 770 | 773 |
| 771 void writeln(Object obj) => _sink.writeln(obj); | 774 void writeln(Object obj) => _sink.writeln(obj); |
| 772 | 775 |
| 773 void writeCharCode(int charCode) => _sink.writeCharCode(charCode); | 776 void writeCharCode(int charCode) => _sink.writeCharCode(charCode); |
| 774 | 777 |
| 775 void writeAll(Iterable objects) => _sink.writeAll(objects); | 778 void writeAll(Iterable objects) => _sink.writeAll(objects); |
| 776 | 779 |
| 777 void writeBytes(List<int> bytes) => _sink.writeBytes(bytes); | 780 void writeBytes(List<int> bytes) => _sink.writeBytes(bytes); |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 927 _raw.onBadCertificate = callback; | 930 _raw.onBadCertificate = callback; |
| 928 } | 931 } |
| 929 | 932 |
| 930 X509Certificate get peerCertificate { | 933 X509Certificate get peerCertificate { |
| 931 if (_raw == null) { | 934 if (_raw == null) { |
| 932 throw new StateError("peerCertificate called on destroyed SecureSocket"); | 935 throw new StateError("peerCertificate called on destroyed SecureSocket"); |
| 933 } | 936 } |
| 934 return _raw.peerCertificate; | 937 return _raw.peerCertificate; |
| 935 } | 938 } |
| 936 } | 939 } |
| OLD | NEW |