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

Unified Diff: runtime/bin/socket_base_win.cc

Issue 2830273002: [dart:io][windows] Implements RawSynchronousSocket (Closed)
Patch Set: Fix Linux build Created 3 years, 8 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 | « runtime/bin/socket_base_macos.cc ('k') | runtime/bin/sync_socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket_base_win.cc
diff --git a/runtime/bin/socket_base_win.cc b/runtime/bin/socket_base_win.cc
index c96025350e7f76d603cd29ca35829d7d762a394f..5283f4f57e92d99b0a4688bdd4a090a339e5a6c7 100644
--- a/runtime/bin/socket_base_win.cc
+++ b/runtime/bin/socket_base_win.cc
@@ -76,7 +76,10 @@ intptr_t SocketBase::Available(intptr_t fd) {
}
-intptr_t SocketBase::Read(intptr_t fd, void* buffer, intptr_t num_bytes) {
+intptr_t SocketBase::Read(intptr_t fd,
+ void* buffer,
+ intptr_t num_bytes,
+ SocketOpKind sync) {
Handle* handle = reinterpret_cast<Handle*>(fd);
return handle->Read(buffer, num_bytes);
}
@@ -85,7 +88,8 @@ intptr_t SocketBase::Read(intptr_t fd, void* buffer, intptr_t num_bytes) {
intptr_t SocketBase::RecvFrom(intptr_t fd,
void* buffer,
intptr_t num_bytes,
- RawAddr* addr) {
+ RawAddr* addr,
+ SocketOpKind sync) {
Handle* handle = reinterpret_cast<Handle*>(fd);
socklen_t addr_len = sizeof(addr->ss);
return handle->RecvFrom(buffer, num_bytes, &addr->addr, addr_len);
@@ -94,7 +98,8 @@ intptr_t SocketBase::RecvFrom(intptr_t fd,
intptr_t SocketBase::Write(intptr_t fd,
const void* buffer,
- intptr_t num_bytes) {
+ intptr_t num_bytes,
+ SocketOpKind sync) {
Handle* handle = reinterpret_cast<Handle*>(fd);
return handle->Write(buffer, num_bytes);
}
@@ -103,7 +108,8 @@ intptr_t SocketBase::Write(intptr_t fd,
intptr_t SocketBase::SendTo(intptr_t fd,
const void* buffer,
intptr_t num_bytes,
- const RawAddr& addr) {
+ const RawAddr& addr,
+ SocketOpKind sync) {
Handle* handle = reinterpret_cast<Handle*>(fd);
RawAddr& raw = const_cast<RawAddr&>(addr);
return handle->SendTo(buffer, num_bytes, &raw.addr,
« no previous file with comments | « runtime/bin/socket_base_macos.cc ('k') | runtime/bin/sync_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698