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

Issue 464020: Add non-blocking peek for the syncsocket... (Closed)

Created:
11 years ago by cpu_(ooo_6.6-7.5)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, pam+watch_chromium.org
Visibility:
Public.

Description

Add non-blocking peek for the syncsocket - Windows only BUG=none TEST=unit test included Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33876

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -0 lines) Patch
M base/sync_socket.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M base/sync_socket_posix.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M base/sync_socket_win.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M ipc/sync_socket_unittest.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
cpu_(ooo_6.6-7.5)
ideas for posix are welcome
11 years ago (2009-12-03 18:55:12 UTC) #1
Paweł Hajdan Jr.
Drive-by. http://codereview.chromium.org/464020/diff/1/3 File base/sync_socket_posix.cc (right): http://codereview.chromium.org/464020/diff/1/3#newcode101 base/sync_socket_posix.cc:101: // TODO: port. Some kind of select? nit: ...
11 years ago (2009-12-03 18:57:45 UTC) #2
John Grabowski
drive by http://codereview.chromium.org/464020/diff/1/3 File base/sync_socket_posix.cc (right): http://codereview.chromium.org/464020/diff/1/3#newcode102 base/sync_socket_posix.cc:102: size_t SyncSocket::Peek() { Perhaps have Peek() return ...
11 years ago (2009-12-03 19:10:22 UTC) #3
cpu_(ooo_6.6-7.5)
pawel, john I've updated the code please look again. http://codereview.chromium.org/464020/diff/1/3 File base/sync_socket_posix.cc (right): http://codereview.chromium.org/464020/diff/1/3#newcode101 base/sync_socket_posix.cc:101: ...
11 years ago (2009-12-03 19:45:14 UTC) #4
Paweł Hajdan Jr.
LGTM (for the drive-by comments).
11 years ago (2009-12-03 19:47:34 UTC) #5
John Grabowski
http://codereview.chromium.org/464020/diff/1/3 File base/sync_socket_posix.cc (right): http://codereview.chromium.org/464020/diff/1/3#newcode102 base/sync_socket_posix.cc:102: size_t SyncSocket::Peek() { On 2009/12/03 19:45:14, cpu wrote: > ...
11 years ago (2009-12-03 20:19:28 UTC) #6
sehr (please use chromium)
On 2009/12/03 20:19:28, John Grabowski wrote: > http://codereview.chromium.org/464020/diff/1/3 > File base/sync_socket_posix.cc (right): > > http://codereview.chromium.org/464020/diff/1/3#newcode102 ...
11 years ago (2009-12-03 22:17:08 UTC) #7
cpu_(ooo_6.6-7.5)
11 years ago (2009-12-04 21:45:22 UTC) #8
I accept the help for posix :)

I added a big warning on the header about using the returned value. I am ok if
after the posix impl we change it to be a boolean.

Powered by Google App Engine
This is Rietveld 408576698