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

Unified Diff: runtime/bin/socket_win.cc

Issue 14139032: Fix broken Mac OS socket code (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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_macos.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket_win.cc
diff --git a/runtime/bin/socket_win.cc b/runtime/bin/socket_win.cc
index a7658311d3e41f6c062519801d2a480aa64ed1ee..c58b63a80ec2e4aba27bf8e080617bdbbfbfbee2 100644
--- a/runtime/bin/socket_win.cc
+++ b/runtime/bin/socket_win.cc
@@ -110,7 +110,7 @@ bool Socket::GetRemotePeer(intptr_t fd, char *host, intptr_t *port) {
}
intptr_t Socket::CreateConnect(RawAddr addr, const intptr_t port) {
- SOCKET s = socket(addr.ss_family, SOCK_STREAM, 0);
+ SOCKET s = socket(addr.ss.ss_family, SOCK_STREAM, 0);
if (s == INVALID_SOCKET) {
return -1;
}
@@ -237,7 +237,7 @@ SocketAddresses* Socket::LookupAddress(const char* host,
intptr_t ServerSocket::CreateBindListen(RawAddr addr,
intptr_t port,
intptr_t backlog) {
- SOCKET s = socket(addr.ss_family, SOCK_STREAM, IPPROTO_TCP);
+ SOCKET s = socket(addr.ss.ss_family, SOCK_STREAM, IPPROTO_TCP);
if (s == INVALID_SOCKET) {
return -1;
}
@@ -255,7 +255,7 @@ intptr_t ServerSocket::CreateBindListen(RawAddr addr,
return -1;
}
- if (addr.ss_family == AF_INET6) {
+ if (addr.ss.ss_family == AF_INET6) {
optval = false;
setsockopt(s,
IPPROTO_IPV6,
« no previous file with comments | « runtime/bin/socket_macos.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698