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

Issue 6820057: Added TCPServerSocket. (Closed)

Created:
9 years, 8 months ago by Sergey Ulanov
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Added TCPServerSocket. BUG=None TEST=Unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82020

Patch Set 1 : - #

Patch Set 2 : - #

Patch Set 3 : windows, fixes for mac #

Total comments: 4

Patch Set 4 : addressed comments #

Patch Set 5 : - #

Patch Set 6 : s/Bind/Listen/ #

Total comments: 34

Patch Set 7 : addressed all comments #

Patch Set 8 : Add ServerSocket interface #

Patch Set 9 : - #

Total comments: 7

Patch Set 10 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+724 lines, -2 lines) Patch
M net/base/net_log_event_type_list.h View 1 2 3 4 5 6 7 8 9 1 chunk +13 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 4 chunks +8 lines, -0 lines 0 comments Download
A net/socket/server_socket.h View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -0 lines 0 comments Download
M net/socket/tcp_client_socket_libevent.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M net/socket/tcp_client_socket_win.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M net/socket/tcp_client_socket_win.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A net/socket/tcp_server_socket.h View 1 chunk +26 lines, -0 lines 0 comments Download
A net/socket/tcp_server_socket_libevent.h View 1 2 3 4 5 6 7 8 9 1 chunk +53 lines, -0 lines 0 comments Download
A net/socket/tcp_server_socket_libevent.cc View 1 2 3 4 5 6 7 8 9 1 chunk +194 lines, -0 lines 0 comments Download
A net/socket/tcp_server_socket_unittest.cc View 1 2 3 4 5 6 7 1 chunk +146 lines, -0 lines 0 comments Download
A net/socket/tcp_server_socket_win.h View 1 2 3 4 5 6 7 1 chunk +55 lines, -0 lines 0 comments Download
A net/socket/tcp_server_socket_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +185 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Sergey Ulanov
TCP server sockets are needed for P2P connections.
9 years, 8 months ago (2011-04-12 00:03:44 UTC) #1
willchan no longer on Chromium
Minor nits while I think this over. I'm wondering if the introduction of server sockets ...
9 years, 8 months ago (2011-04-12 16:45:00 UTC) #2
Sergey Ulanov
I agree, that it doesn't feel right that the server socket returns client sockets. Your ...
9 years, 8 months ago (2011-04-12 19:20:46 UTC) #3
willchan no longer on Chromium
I sorta think a good first step if to ditch the ClientSocket concept and replace ...
9 years, 8 months ago (2011-04-13 15:14:03 UTC) #4
willchan no longer on Chromium
http://codereview.chromium.org/6820057/diff/8001/net/socket/tcp_server_socket_libevent.cc File net/socket/tcp_server_socket_libevent.cc (right): http://codereview.chromium.org/6820057/diff/8001/net/socket/tcp_server_socket_libevent.cc#newcode41 net/socket/tcp_server_socket_libevent.cc:41: net_log_source_(source) { You should probably be creating new NetLog ...
9 years, 8 months ago (2011-04-13 16:08:51 UTC) #5
Sergey Ulanov
Also added ServerSocket interface. http://codereview.chromium.org/6820057/diff/8001/net/socket/tcp_server_socket_libevent.cc File net/socket/tcp_server_socket_libevent.cc (right): http://codereview.chromium.org/6820057/diff/8001/net/socket/tcp_server_socket_libevent.cc#newcode41 net/socket/tcp_server_socket_libevent.cc:41: net_log_source_(source) { On 2011/04/13 16:08:51, ...
9 years, 8 months ago (2011-04-13 21:20:19 UTC) #6
Sergey Ulanov
ping
9 years, 8 months ago (2011-04-15 18:59:54 UTC) #7
willchan no longer on Chromium
http://codereview.chromium.org/6820057/diff/14001/net/socket/server_socket.h File net/socket/server_socket.h (right): http://codereview.chromium.org/6820057/diff/14001/net/socket/server_socket.h#newcode16 net/socket/server_socket.h:16: class ServerSocket { Can you justify the need for ...
9 years, 8 months ago (2011-04-18 18:07:17 UTC) #8
Sergey Ulanov
http://codereview.chromium.org/6820057/diff/14001/net/socket/server_socket.h File net/socket/server_socket.h (right): http://codereview.chromium.org/6820057/diff/14001/net/socket/server_socket.h#newcode16 net/socket/server_socket.h:16: class ServerSocket { On 2011/04/18 18:07:17, willchan wrote: > ...
9 years, 8 months ago (2011-04-18 19:40:28 UTC) #9
willchan no longer on Chromium
LGTM, although I may ask you to rename the returned socket from ClientSocket to something ...
9 years, 8 months ago (2011-04-18 20:08:56 UTC) #10
Sergey Ulanov
9 years, 8 months ago (2011-04-18 20:30:49 UTC) #11
On 2011/04/18 20:08:56, willchan wrote:
> LGTM, although I may ask you to rename the returned socket from ClientSocket
to
> something else, if Mike and I can reach a consensus.
SGTM

Powered by Google App Engine
This is Rietveld 408576698