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

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

Issue 2752153003: Fix incorrect signature in socket.dart. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 * The maximum length of the datagram that can be received is 65503 bytes. 688 * The maximum length of the datagram that can be received is 65503 bytes.
689 */ 689 */
690 Datagram receive(); 690 Datagram receive();
691 691
692 /** 692 /**
693 * Join a multicast group. 693 * Join a multicast group.
694 * 694 *
695 * If an error occur when trying to join the multicast group an 695 * If an error occur when trying to join the multicast group an
696 * exception is thrown. 696 * exception is thrown.
697 */ 697 */
698 void joinMulticast(InternetAddress group, {NetworkInterface interface}); 698 void joinMulticast(InternetAddress group, [NetworkInterface interface]);
699 699
700 /** 700 /**
701 * Leave a multicast group. 701 * Leave a multicast group.
702 * 702 *
703 * If an error occur when trying to join the multicase group an 703 * If an error occur when trying to join the multicase group an
704 * exception is thrown. 704 * exception is thrown.
705 */ 705 */
706 void leaveMulticast(InternetAddress group, {NetworkInterface interface}); 706 void leaveMulticast(InternetAddress group, [NetworkInterface interface]);
707 } 707 }
708 708
709 709
710 class SocketException implements IOException { 710 class SocketException implements IOException {
711 final String message; 711 final String message;
712 final OSError osError; 712 final OSError osError;
713 final InternetAddress address; 713 final InternetAddress address;
714 final int port; 714 final int port;
715 715
716 const SocketException(this.message, {this.osError, this.address, this.port}); 716 const SocketException(this.message, {this.osError, this.address, this.port});
(...skipping 16 matching lines...) Expand all
733 } 733 }
734 if (address != null) { 734 if (address != null) {
735 sb.write(", address = ${address.host}"); 735 sb.write(", address = ${address.host}");
736 } 736 }
737 if (port != null) { 737 if (port != null) {
738 sb.write(", port = $port"); 738 sb.write(", port = $port");
739 } 739 }
740 return sb.toString(); 740 return sb.toString();
741 } 741 }
742 } 742 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698