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

Issue 910183003: Reafctor to use 'const RawAddr&' or 'RawAddr*' in the eventhandler code (Closed)

Created:
5 years, 10 months ago by Søren Gjesse
Modified:
5 years, 10 months ago
Reviewers:
Bill Hesse, kustermann
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Reafctor to use 'const RawAddr&' or 'RawAddr*' in the eventhandler code Also pass the port as part of RawAddr instead of in a separate argument when both addr and port are passed. R=kustermann@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=43722

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix Windows build #

Patch Set 3 : Fix OS X build #

Patch Set 4 : Minor change #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -226 lines) Patch
M runtime/bin/dbg_connection.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M runtime/bin/secure_socket.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/secure_socket.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M runtime/bin/socket.h View 1 2 3 6 chunks +48 lines, -35 lines 0 comments Download
M runtime/bin/socket.cc View 16 chunks +20 lines, -19 lines 0 comments Download
M runtime/bin/socket_android.cc View 1 17 chunks +31 lines, -37 lines 0 comments Download
M runtime/bin/socket_linux.cc View 1 15 chunks +33 lines, -39 lines 1 comment Download
M runtime/bin/socket_macos.cc View 1 2 18 chunks +43 lines, -45 lines 0 comments Download
M runtime/bin/socket_win.cc View 1 19 chunks +38 lines, -44 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Søren Gjesse
I have not compiled the code on OS X or Windows yet.
5 years, 10 months ago (2015-02-11 14:19:55 UTC) #1
kustermann
Combinding the port with addr might make it more error-prone -- just forgetting the `SocketAddress::SetAddrPort(&addr, ...
5 years, 10 months ago (2015-02-11 14:54:31 UTC) #2
Søren Gjesse
On 2015/02/11 14:54:31, kustermann wrote: > Combinding the port with addr might make it more ...
5 years, 10 months ago (2015-02-11 15:19:33 UTC) #3
Søren Gjesse
https://codereview.chromium.org/910183003/diff/1/runtime/bin/socket.h File runtime/bin/socket.h (right): https://codereview.chromium.org/910183003/diff/1/runtime/bin/socket.h#newcode148 runtime/bin/socket.h:148: RawAddr* ptr = &const_cast<RawAddr&>(raw); On 2015/02/11 14:54:31, kustermann wrote: ...
5 years, 10 months ago (2015-02-11 15:19:39 UTC) #4
kustermann
lgtm
5 years, 10 months ago (2015-02-11 15:47:48 UTC) #5
Søren Gjesse
Committed patchset #4 (id:60001) manually as 43722.
5 years, 10 months ago (2015-02-12 11:39:33 UTC) #7
Bill Hesse
5 years, 10 months ago (2015-02-12 12:28:00 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/910183003/diff/60001/runtime/bin/socket_linux.cc
File runtime/bin/socket_linux.cc (right):

https://codereview.chromium.org/910183003/diff/60001/runtime/bin/socket_linux...
runtime/bin/socket_linux.cc:552: int proto = addr.addr.sa_family == AF_INET ?
IPPROTO_IP : IPPROTO_IPV6;
These changes need to be made to JoinMulticast and LeaveMulticast in the
socket_android.cc file as well.

Powered by Google App Engine
This is Rietveld 408576698