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 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 } | 774 } |
775 | 775 |
776 Encoding get encoding => _sink.encoding; | 776 Encoding get encoding => _sink.encoding; |
777 | 777 |
778 void set encoding(Encoding value) { | 778 void set encoding(Encoding value) { |
779 _sink.encoding = value; | 779 _sink.encoding = value; |
780 } | 780 } |
781 | 781 |
782 void write(Object obj) => _sink.write(obj); | 782 void write(Object obj) => _sink.write(obj); |
783 | 783 |
784 void writeln(Object obj) => _sink.writeln(obj); | 784 void writeln([Object obj = ""]) => _sink.writeln(obj); |
785 | 785 |
786 void writeCharCode(int charCode) => _sink.writeCharCode(charCode); | 786 void writeCharCode(int charCode) => _sink.writeCharCode(charCode); |
787 | 787 |
788 void writeAll(Iterable objects) => _sink.writeAll(objects); | 788 void writeAll(Iterable objects) => _sink.writeAll(objects); |
789 | 789 |
790 void writeBytes(List<int> bytes) => _sink.writeBytes(bytes); | 790 void writeBytes(List<int> bytes) => _sink.writeBytes(bytes); |
791 | 791 |
792 Future<Socket> consume(Stream<List<int>> stream) { | 792 Future<Socket> consume(Stream<List<int>> stream) { |
793 return _sink.consume(stream); | 793 return _sink.consume(stream); |
794 } | 794 } |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
945 _raw.onBadCertificate = callback; | 945 _raw.onBadCertificate = callback; |
946 } | 946 } |
947 | 947 |
948 X509Certificate get peerCertificate { | 948 X509Certificate get peerCertificate { |
949 if (_raw == null) { | 949 if (_raw == null) { |
950 throw new StateError("peerCertificate called on destroyed SecureSocket"); | 950 throw new StateError("peerCertificate called on destroyed SecureSocket"); |
951 } | 951 } |
952 return _raw.peerCertificate; | 952 return _raw.peerCertificate; |
953 } | 953 } |
954 } | 954 } |
OLD | NEW |