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

Side by Side Diff: runtime/bin/socket.h

Issue 14766003: Add v6Only named argument to ServerSocket and etc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge Created 7 years, 7 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 #ifndef BIN_SOCKET_H_ 5 #ifndef BIN_SOCKET_H_
6 #define BIN_SOCKET_H_ 6 #define BIN_SOCKET_H_
7 7
8 #include "bin/builtin.h" 8 #include "bin/builtin.h"
9 #include "bin/utils.h" 9 #include "bin/utils.h"
10 10
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 static intptr_t Accept(intptr_t fd); 170 static intptr_t Accept(intptr_t fd);
171 171
172 // Returns a positive integer if the call is successful. In case of failure 172 // Returns a positive integer if the call is successful. In case of failure
173 // it returns: 173 // it returns:
174 // 174 //
175 // -1: system error (errno set) 175 // -1: system error (errno set)
176 // -5: invalid bindAddress 176 // -5: invalid bindAddress
177 static intptr_t CreateBindListen(RawAddr addr, 177 static intptr_t CreateBindListen(RawAddr addr,
178 intptr_t port, 178 intptr_t port,
179 intptr_t backlog); 179 intptr_t backlog,
180 bool v6_only = false);
180 181
181 DISALLOW_ALLOCATION(); 182 DISALLOW_ALLOCATION();
182 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket); 183 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket);
183 }; 184 };
184 185
185 } // namespace bin 186 } // namespace bin
186 } // namespace dart 187 } // namespace dart
187 188
188 #endif // BIN_SOCKET_H_ 189 #endif // BIN_SOCKET_H_
OLDNEW
« no previous file with comments | « runtime/bin/io_natives.cc ('k') | runtime/bin/socket.cc » ('j') | runtime/bin/socket_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698