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

Unified Diff: bin/socket_win.cc

Issue 8249007: Implement the full process interface for Windows (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bin/process_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/socket_win.cc
===================================================================
--- bin/socket_win.cc (revision 380)
+++ bin/socket_win.cc (working copy)
@@ -28,16 +28,14 @@
intptr_t Socket::Read(intptr_t fd, void* buffer, intptr_t num_bytes) {
- ASSERT(reinterpret_cast<Handle*>(fd)->is_client_socket());
- ClientSocket* client_socket = reinterpret_cast<ClientSocket*>(fd);
- return client_socket->Read(buffer, num_bytes);
+ Handle* handle = reinterpret_cast<Handle*>(fd);
+ return handle->Read(buffer, num_bytes);
}
intptr_t Socket::Write(intptr_t fd, const void* buffer, intptr_t num_bytes) {
- ASSERT(reinterpret_cast<Handle*>(fd)->is_client_socket());
- ClientSocket* client_socket = reinterpret_cast<ClientSocket*>(fd);
- return client_socket->Write(buffer, num_bytes);
+ Handle* handle = reinterpret_cast<Handle*>(fd);
+ return handle->Write(buffer, num_bytes);
}
« no previous file with comments | « bin/process_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698