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

Issue 1556743002: Bind a socket to a network if the network handle is set. (Closed)

Created:
4 years, 11 months ago by honghaiz3
Modified:
4 years, 11 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add a new interface for creating a udp socket in which it binds the socket to a network if the network handle is set. Plus, in stunport, turnport and allocation sequence, create a socket using the new interface. BUG= Committed: https://crrev.com/cec0a08275f767e665287dbf04fd9d04648a7d67 Cr-Commit-Position: refs/heads/master@{#11279}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Patch Set 4 : Removed the network_binder_ in PhysicalSocket. Use the binder from the PhysicalSocketServer. #

Patch Set 5 : Fix a compiling issue for Windows #

Total comments: 22

Patch Set 6 : Addressed comments #

Total comments: 4

Patch Set 7 : Merge with head #

Total comments: 32

Patch Set 8 : #

Total comments: 8

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+457 lines, -62 lines) Patch
M talk/app/webrtc/androidtests/AndroidManifest.xml View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M talk/app/webrtc/androidtests/src/org/webrtc/NetworkMonitorTest.java View 1 2 3 chunks +5 lines, -1 line 0 comments Download
M talk/app/webrtc/java/android/org/webrtc/NetworkMonitor.java View 1 2 3 4 5 6 7 5 chunks +18 lines, -4 lines 0 comments Download
M talk/app/webrtc/java/android/org/webrtc/NetworkMonitorAutoDetect.java View 1 2 3 4 5 6 7 13 chunks +90 lines, -23 lines 0 comments Download
M talk/app/webrtc/java/jni/androidnetworkmonitor_jni.h View 1 2 3 4 5 6 7 8 2 chunks +39 lines, -4 lines 0 comments Download
M talk/app/webrtc/java/jni/androidnetworkmonitor_jni.cc View 1 2 3 4 5 6 7 8 4 chunks +211 lines, -0 lines 0 comments Download
M talk/app/webrtc/java/jni/classreferenceholder.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M talk/app/webrtc/java/jni/jni_helpers.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M talk/app/webrtc/java/jni/jni_helpers.cc View 1 2 2 chunks +15 lines, -0 lines 0 comments Download
M talk/app/webrtc/java/jni/peerconnection_jni.cc View 1 2 3 4 5 6 1 chunk +0 lines, -12 lines 0 comments Download
M webrtc/base/network.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -3 lines 0 comments Download
M webrtc/base/network_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +14 lines, -9 lines 0 comments Download
M webrtc/base/networkmonitor.h View 1 2 3 4 5 6 7 8 2 chunks +25 lines, -1 line 0 comments Download
M webrtc/base/networkmonitor.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/base/physicalsocketserver.cc View 1 2 3 4 5 5 chunks +12 lines, -3 lines 0 comments Download
M webrtc/base/socketserver.h View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download
M webrtc/examples/androidapp/AndroidManifest.xml View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 42 (24 generated)
honghaiz3
This may need to be merged with the other CL for multi-networking on Android. If ...
4 years, 11 months ago (2016-01-06 01:05:10 UTC) #10
pthatcher1
https://codereview.webrtc.org/1556743002/diff/140001/webrtc/base/asyncsocket.h File webrtc/base/asyncsocket.h (right): https://codereview.webrtc.org/1556743002/diff/140001/webrtc/base/asyncsocket.h#newcode30 webrtc/base/asyncsocket.h:30: virtual int BindToNetwork(NetworkHandle handle) = 0; Can you put ...
4 years, 11 months ago (2016-01-06 21:58:47 UTC) #11
honghaiz3
I merged with the CL to pass down the NetworkInformation. Plus, I think at least ...
4 years, 11 months ago (2016-01-12 20:36:42 UTC) #19
honghaiz3
4 years, 11 months ago (2016-01-13 21:02:36 UTC) #23
pthatcher1
This looks *much* better. The only big thing I'm not sure about is how we ...
4 years, 11 months ago (2016-01-14 20:07:24 UTC) #24
honghaiz3
I now pass the NetworkMonitor as a networkbinder to the socket server in the network ...
4 years, 11 months ago (2016-01-15 01:00:38 UTC) #25
AlexG
https://codereview.webrtc.org/1556743002/diff/410001/talk/app/webrtc/java/android/org/webrtc/NetworkMonitor.java File talk/app/webrtc/java/android/org/webrtc/NetworkMonitor.java (right): https://codereview.webrtc.org/1556743002/diff/410001/talk/app/webrtc/java/android/org/webrtc/NetworkMonitor.java#newcode160 talk/app/webrtc/java/android/org/webrtc/NetworkMonitor.java:160: public void onNetworkConnect(NetworkInformation networkInfo) { add override https://codereview.webrtc.org/1556743002/diff/410001/talk/app/webrtc/java/android/org/webrtc/NetworkMonitorAutoDetect.java File ...
4 years, 11 months ago (2016-01-15 18:32:37 UTC) #26
AlexG
https://codereview.webrtc.org/1556743002/diff/410001/talk/app/webrtc/java/android/org/webrtc/NetworkMonitor.java File talk/app/webrtc/java/android/org/webrtc/NetworkMonitor.java (right): https://codereview.webrtc.org/1556743002/diff/410001/talk/app/webrtc/java/android/org/webrtc/NetworkMonitor.java#newcode35 talk/app/webrtc/java/android/org/webrtc/NetworkMonitor.java:35: import android.util.Log; use Logging for Android logs
4 years, 11 months ago (2016-01-15 18:34:12 UTC) #27
honghaiz3
4 years, 11 months ago (2016-01-15 18:53:13 UTC) #29
honghaiz3
Thanks! PTAL. https://codereview.webrtc.org/1556743002/diff/410001/talk/app/webrtc/java/android/org/webrtc/NetworkMonitor.java File talk/app/webrtc/java/android/org/webrtc/NetworkMonitor.java (right): https://codereview.webrtc.org/1556743002/diff/410001/talk/app/webrtc/java/android/org/webrtc/NetworkMonitor.java#newcode35 talk/app/webrtc/java/android/org/webrtc/NetworkMonitor.java:35: import android.util.Log; On 2016/01/15 18:34:12, AlexG wrote: ...
4 years, 11 months ago (2016-01-15 19:17:57 UTC) #30
Taylor Brandstetter
lgtm for C++ files, with minor nits https://codereview.webrtc.org/1556743002/diff/410001/talk/app/webrtc/java/jni/androidnetworkmonitor_jni.cc File talk/app/webrtc/java/jni/androidnetworkmonitor_jni.cc (right): https://codereview.webrtc.org/1556743002/diff/410001/talk/app/webrtc/java/jni/androidnetworkmonitor_jni.cc#newcode80 talk/app/webrtc/java/jni/androidnetworkmonitor_jni.cc:80: jbyte* addr_array ...
4 years, 11 months ago (2016-01-15 19:36:13 UTC) #31
pthatcher1
https://codereview.webrtc.org/1556743002/diff/390001/talk/app/webrtc/java/jni/androidnetworkmonitor_jni.cc File talk/app/webrtc/java/jni/androidnetworkmonitor_jni.cc (right): https://codereview.webrtc.org/1556743002/diff/390001/talk/app/webrtc/java/jni/androidnetworkmonitor_jni.cc#newcode247 talk/app/webrtc/java/jni/androidnetworkmonitor_jni.cc:247: return rtc::ERR_FAILED; This might be a little with the ...
4 years, 11 months ago (2016-01-15 19:56:11 UTC) #32
honghaiz3
Thanks! Addressed all comments. PTAL. https://codereview.webrtc.org/1556743002/diff/410001/talk/app/webrtc/java/jni/androidnetworkmonitor_jni.cc File talk/app/webrtc/java/jni/androidnetworkmonitor_jni.cc (right): https://codereview.webrtc.org/1556743002/diff/410001/talk/app/webrtc/java/jni/androidnetworkmonitor_jni.cc#newcode80 talk/app/webrtc/java/jni/androidnetworkmonitor_jni.cc:80: jbyte* addr_array = jni->GetByteArrayElements(j_addresses, ...
4 years, 11 months ago (2016-01-15 21:37:36 UTC) #33
pthatcher1
lgtm
4 years, 11 months ago (2016-01-15 21:55:05 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1556743002/450001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1556743002/450001
4 years, 11 months ago (2016-01-15 22:14:32 UTC) #37
AlexG
lgtm
4 years, 11 months ago (2016-01-15 22:14:47 UTC) #38
commit-bot: I haz the power
Committed patchset #9 (id:450001)
4 years, 11 months ago (2016-01-15 22:49:13 UTC) #40
commit-bot: I haz the power
4 years, 11 months ago (2016-01-15 22:49:21 UTC) #42
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/cec0a08275f767e665287dbf04fd9d04648a7d67
Cr-Commit-Position: refs/heads/master@{#11279}

Powered by Google App Engine
This is Rietveld 408576698