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

Side by Side Diff: runtime/bin/socket_patch.dart

Issue 2220983002: Fix return type for JoinMulticast. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 | tests/standalone/io/raw_datagram_socket_test.dart » ('j') | 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 patch class RawServerSocket { 5 patch class RawServerSocket {
6 /* patch */ static Future<RawServerSocket> bind(address, 6 /* patch */ static Future<RawServerSocket> bind(address,
7 int port, 7 int port,
8 {int backlog: 0, 8 {int backlog: 0,
9 bool v6Only: false, 9 bool v6Only: false,
10 bool shared: false}) { 10 bool shared: false}) {
(...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after
1088 nativeCreateBindDatagram(List<int> addr, int port, bool reuseAddress) 1088 nativeCreateBindDatagram(List<int> addr, int port, bool reuseAddress)
1089 native "Socket_CreateBindDatagram"; 1089 native "Socket_CreateBindDatagram";
1090 nativeAccept(_NativeSocket socket) native "ServerSocket_Accept"; 1090 nativeAccept(_NativeSocket socket) native "ServerSocket_Accept";
1091 int nativeGetPort() native "Socket_GetPort"; 1091 int nativeGetPort() native "Socket_GetPort";
1092 List nativeGetRemotePeer() native "Socket_GetRemotePeer"; 1092 List nativeGetRemotePeer() native "Socket_GetRemotePeer";
1093 int nativeGetSocketId() native "Socket_GetSocketId"; 1093 int nativeGetSocketId() native "Socket_GetSocketId";
1094 OSError nativeGetError() native "Socket_GetError"; 1094 OSError nativeGetError() native "Socket_GetError";
1095 nativeGetOption(int option, int protocol) native "Socket_GetOption"; 1095 nativeGetOption(int option, int protocol) native "Socket_GetOption";
1096 bool nativeSetOption(int option, int protocol, value) 1096 bool nativeSetOption(int option, int protocol, value)
1097 native "Socket_SetOption"; 1097 native "Socket_SetOption";
1098 bool nativeJoinMulticast( 1098 OSError nativeJoinMulticast(
1099 List<int> addr, List<int> interfaceAddr, int interfaceIndex) 1099 List<int> addr, List<int> interfaceAddr, int interfaceIndex)
1100 native "Socket_JoinMulticast"; 1100 native "Socket_JoinMulticast";
1101 bool nativeLeaveMulticast( 1101 bool nativeLeaveMulticast(
1102 List<int> addr, List<int> interfaceAddr, int interfaceIndex) 1102 List<int> addr, List<int> interfaceAddr, int interfaceIndex)
1103 native "Socket_LeaveMulticast"; 1103 native "Socket_LeaveMulticast";
1104 } 1104 }
1105 1105
1106 1106
1107 class _RawServerSocket extends Stream<RawSocket> 1107 class _RawServerSocket extends Stream<RawSocket>
1108 implements RawServerSocket { 1108 implements RawServerSocket {
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
1864 Datagram _makeDatagram(List<int> data, 1864 Datagram _makeDatagram(List<int> data,
1865 String address, 1865 String address,
1866 List<int> in_addr, 1866 List<int> in_addr,
1867 int port) { 1867 int port) {
1868 return new Datagram( 1868 return new Datagram(
1869 data, 1869 data,
1870 new _InternetAddress(address, null, in_addr), 1870 new _InternetAddress(address, null, in_addr),
1871 port); 1871 port);
1872 } 1872 }
1873 1873
OLDNEW
« no previous file with comments | « no previous file | tests/standalone/io/raw_datagram_socket_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698