Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Issue 7004055: Bind() methods for TCP sockets (Closed)

Created:
9 years, 7 months ago by Sergey Ulanov
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam, Jói
Visibility:
Public.

Description

Patch Set 1 : - #

Patch Set 2 : fix windows #

Total comments: 6

Patch Set 3 : address comments #

Patch Set 4 : - #

Patch Set 5 : - #

Patch Set 6 : fix windows #

Total comments: 18

Patch Set 7 : - #

Patch Set 8 : more unittests #

Patch Set 9 : - #

Patch Set 10 : fix compilation on windows #

Patch Set 11 : remove BindLoopbackToLocal #

Patch Set 12 : IPv4<=>IPv6 test #

Patch Set 13 : handle missing IPv6 support properly #

Patch Set 14 : - #

Patch Set 15 : - #

Patch Set 16 : - #

Unified diffs Side-by-side diffs Delta from patch set Stats (+479 lines, -158 lines) Patch
M content/browser/renderer_host/p2p/socket_host_tcp.cc View 1 chunk +7 lines, -1 line 0 comments Download
M net/base/net_errors_posix.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M net/base/net_errors_win.cc View 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M net/socket/tcp_client_socket_libevent.h View 1 2 3 4 5 6 3 chunks +11 lines, -7 lines 0 comments Download
M net/socket/tcp_client_socket_libevent.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +94 lines, -34 lines 0 comments Download
A net/socket/tcp_client_socket_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +110 lines, -0 lines 0 comments Download
M net/socket/tcp_client_socket_win.h View 1 2 3 4 5 6 4 chunks +12 lines, -7 lines 0 comments Download
M net/socket/tcp_client_socket_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +164 lines, -92 lines 0 comments Download
M net/socket/tcp_server_socket_libevent.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +14 lines, -8 lines 0 comments Download
M net/socket/tcp_server_socket_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +47 lines, -1 line 0 comments Download
net/socket/tcp_server_socket_win.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +14 lines, -8 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Sergey Ulanov
9 years, 7 months ago (2011-05-21 04:38:27 UTC) #1
willchan no longer on Chromium
http://codereview.chromium.org/7004055/diff/3001/net/socket/tcp_client_socket_libevent.cc File net/socket/tcp_client_socket_libevent.cc (right): http://codereview.chromium.org/7004055/diff/3001/net/socket/tcp_client_socket_libevent.cc#newcode144 net/socket/tcp_client_socket_libevent.cc:144: return ERR_INVALID_ARGUMENT; I don't think ERR_INVALID_ARGUMENT is appropriate here. ...
9 years, 7 months ago (2011-05-22 22:42:37 UTC) #2
Sergey Ulanov
Addressed comments. Also fixed error handling for AdoptSocket(). On 2011/05/22 22:42:37, willchan wrote: > http://codereview.chromium.org/7004055/diff/3001/net/socket/tcp_client_socket_libevent.cc ...
9 years, 7 months ago (2011-05-23 20:56:03 UTC) #3
Sergey Ulanov
BTW, do we have unittests for TCPClientSocket? I couldn't find any, otherwise I would add ...
9 years, 7 months ago (2011-05-23 20:57:05 UTC) #4
Sergey Ulanov
http://codereview.chromium.org/7004055/diff/3001/net/socket/tcp_client_socket_libevent.cc File net/socket/tcp_client_socket_libevent.cc (right): http://codereview.chromium.org/7004055/diff/3001/net/socket/tcp_client_socket_libevent.cc#newcode144 net/socket/tcp_client_socket_libevent.cc:144: return ERR_INVALID_ARGUMENT; On 2011/05/22 22:42:37, willchan wrote: > I ...
9 years, 7 months ago (2011-05-23 20:57:51 UTC) #5
willchan no longer on Chromium
They got moved to transport_client_socket_unittest.cc I think. On Mon, May 23, 2011 at 1:57 PM, ...
9 years, 7 months ago (2011-05-23 21:03:03 UTC) #6
Sergey Ulanov
Ok, I've added unittests in tcp_client_socket_unittest.cc (because Bind() is for TCP sockets only).
9 years, 7 months ago (2011-05-24 00:28:45 UTC) #7
Sergey Ulanov
ping
9 years, 7 months ago (2011-05-24 23:32:54 UTC) #8
willchan no longer on Chromium
http://codereview.chromium.org/7004055/diff/5004/net/socket/tcp_client_socket_libevent.cc File net/socket/tcp_client_socket_libevent.cc (right): http://codereview.chromium.org/7004055/diff/5004/net/socket/tcp_client_socket_libevent.cc#newcode148 net/socket/tcp_client_socket_libevent.cc:148: int TCPClientSocketLibevent::Bind(const IPEndPoint& address) { bind() is not allowed ...
9 years, 7 months ago (2011-05-25 14:28:14 UTC) #9
Sergey Ulanov
http://codereview.chromium.org/7004055/diff/5004/net/socket/tcp_client_socket_libevent.cc File net/socket/tcp_client_socket_libevent.cc (right): http://codereview.chromium.org/7004055/diff/5004/net/socket/tcp_client_socket_libevent.cc#newcode148 net/socket/tcp_client_socket_libevent.cc:148: int TCPClientSocketLibevent::Bind(const IPEndPoint& address) { On 2011/05/25 14:28:14, willchan ...
9 years, 7 months ago (2011-05-25 20:58:46 UTC) #10
Sergey Ulanov
Added one more unittest that connects local interface to loopback interface, and verifies addresses on ...
9 years, 7 months ago (2011-05-25 21:17:48 UTC) #11
Sergey Ulanov
On 2011/05/25 21:17:48, sergeyu wrote: > Added one more unittest that connects local interface to ...
9 years, 7 months ago (2011-05-25 23:50:10 UTC) #12
willchan no longer on Chromium
http://codereview.chromium.org/7004055/diff/5004/net/socket/tcp_client_socket_libevent.cc File net/socket/tcp_client_socket_libevent.cc (right): http://codereview.chromium.org/7004055/diff/5004/net/socket/tcp_client_socket_libevent.cc#newcode269 net/socket/tcp_client_socket_libevent.cc:269: return MapConnectError(errno); On 2011/05/25 20:58:46, sergeyu wrote: > On ...
9 years, 7 months ago (2011-05-26 14:25:59 UTC) #13
Sergey Ulanov
> http://codereview.chromium.org/7004055/diff/5004/net/socket/tcp_client_socket_unittest.cc > File net/socket/tcp_client_socket_unittest.cc (right): > > http://codereview.chromium.org/7004055/diff/5004/net/socket/tcp_client_socket_unittest.cc#newcode54 > net/socket/tcp_client_socket_unittest.cc:54: // external address, verify ...
9 years, 7 months ago (2011-05-26 19:07:56 UTC) #14
Sergey Ulanov
ping
9 years, 7 months ago (2011-05-27 17:17:02 UTC) #15
willchan no longer on Chromium
9 years, 7 months ago (2011-05-27 17:33:16 UTC) #16
LGTM, sorry for the delays, I have failed you!

Powered by Google App Engine
This is Rietveld 408576698