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

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

Issue 312343002: - Fix truncation in Socket calls. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | runtime/bin/socket_android.cc » ('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 #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 #include "bin/dartutils.h" 10 #include "bin/dartutils.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 class Socket { 214 class Socket {
215 public: 215 public:
216 enum SocketRequest { 216 enum SocketRequest {
217 kLookupRequest = 0, 217 kLookupRequest = 0,
218 kListInterfacesRequest = 1, 218 kListInterfacesRequest = 1,
219 kReverseLookupRequest = 2, 219 kReverseLookupRequest = 2,
220 }; 220 };
221 221
222 static bool Initialize(); 222 static bool Initialize();
223 static intptr_t Available(intptr_t fd); 223 static intptr_t Available(intptr_t fd);
224 static int Read(intptr_t fd, void* buffer, intptr_t num_bytes); 224 static intptr_t Read(intptr_t fd, void* buffer, intptr_t num_bytes);
225 static int Write(intptr_t fd, const void* buffer, intptr_t num_bytes); 225 static intptr_t Write(intptr_t fd, const void* buffer, intptr_t num_bytes);
226 static int SendTo( 226 static intptr_t SendTo(
227 intptr_t fd, const void* buffer, intptr_t num_bytes, RawAddr addr); 227 intptr_t fd, const void* buffer, intptr_t num_bytes, RawAddr addr);
228 static int RecvFrom( 228 static intptr_t RecvFrom(
229 intptr_t fd, void* buffer, intptr_t num_bytes, RawAddr* addr); 229 intptr_t fd, void* buffer, intptr_t num_bytes, RawAddr* addr);
230 static intptr_t Create(RawAddr addr); 230 static intptr_t Create(RawAddr addr);
231 static intptr_t Connect(intptr_t fd, RawAddr addr, const intptr_t port); 231 static intptr_t Connect(intptr_t fd, RawAddr addr, const intptr_t port);
232 static intptr_t CreateConnect(RawAddr addr, 232 static intptr_t CreateConnect(RawAddr addr,
233 const intptr_t port); 233 const intptr_t port);
234 static intptr_t CreateBindDatagram( 234 static intptr_t CreateBindDatagram(
235 RawAddr* addr, intptr_t port, bool reuseAddress); 235 RawAddr* addr, intptr_t port, bool reuseAddress);
236 static intptr_t GetPort(intptr_t fd); 236 static intptr_t GetPort(intptr_t fd);
237 static SocketAddress* GetRemotePeer(intptr_t fd, intptr_t* port); 237 static SocketAddress* GetRemotePeer(intptr_t fd, intptr_t* port);
238 static void GetError(intptr_t fd, OSError* os_error); 238 static void GetError(intptr_t fd, OSError* os_error);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 305
306 private: 306 private:
307 DISALLOW_ALLOCATION(); 307 DISALLOW_ALLOCATION();
308 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket); 308 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket);
309 }; 309 };
310 310
311 } // namespace bin 311 } // namespace bin
312 } // namespace dart 312 } // namespace dart
313 313
314 #endif // BIN_SOCKET_H_ 314 #endif // BIN_SOCKET_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/socket_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698