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

Issue 22587003: [NaCl SDK] Add UDP and TCP Sockets (Closed)

Created:
7 years, 4 months ago by noelallen1
Modified:
7 years, 4 months ago
Reviewers:
binji, Sam Clegg
CC:
chromium-reviews, binji, Sam Clegg
Visibility:
Public.

Description

[NaCl SDK] Add UDP and TCP Sockets Creates MountSocket, MountNodeSocket, MountNodeUDP, MountNodeTCP Wires up socket api (socket, connect, bind, send, ...) to MountNodeSocket. This is a basic blocking only (no select) implementation. BUG=257723 R=binji@chromium.org, sbc@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217731

Patch Set 1 #

Patch Set 2 : Add UDP sockets #

Patch Set 3 : Running tests on package #

Total comments: 122

Patch Set 4 : merge #

Patch Set 5 : Fixes #

Total comments: 1

Patch Set 6 : Fix nits #

Patch Set 7 : merge #

Patch Set 8 : Disable SEL_LDR test for nacl_io_socket_test #

Patch Set 9 : Merge #

Patch Set 10 : Merge #

Patch Set 11 : Enable sockets on Mac #

Patch Set 12 : Merge to browser tester fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1306 lines, -58 lines) Patch
M native_client_sdk/src/build_tools/test_projects.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -3 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_handle.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_handle.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_proxy.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc View 1 2 3 4 5 6 12 chunks +101 lines, -23 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/library.dsc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/mount_node.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/mount_node.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A native_client_sdk/src/libraries/nacl_io/mount_node_socket.h View 1 2 3 4 5 1 chunk +105 lines, -0 lines 0 comments Download
A native_client_sdk/src/libraries/nacl_io/mount_node_socket.cc View 1 2 3 4 1 chunk +263 lines, -0 lines 0 comments Download
A native_client_sdk/src/libraries/nacl_io/mount_node_tcp.h View 1 2 3 4 1 chunk +52 lines, -0 lines 0 comments Download
A native_client_sdk/src/libraries/nacl_io/mount_node_tcp.cc View 1 2 3 4 5 1 chunk +146 lines, -0 lines 0 comments Download
A native_client_sdk/src/libraries/nacl_io/mount_node_udp.h View 1 2 3 4 1 chunk +64 lines, -0 lines 0 comments Download
A native_client_sdk/src/libraries/nacl_io/mount_node_udp.cc View 1 2 3 4 5 1 chunk +188 lines, -0 lines 0 comments Download
A native_client_sdk/src/libraries/nacl_io/mount_socket.h View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download
A native_client_sdk/src/libraries/nacl_io/mount_socket.cc View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/pepper/all_interfaces.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +37 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/pepper_interface.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/pepper_interface.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +10 lines, -1 line 0 comments Download
A + native_client_sdk/src/libraries/nacl_io_socket_test/event_test.cc View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + native_client_sdk/src/libraries/nacl_io_socket_test/example.dsc View 1 2 3 4 5 6 7 2 chunks +12 lines, -23 lines 0 comments Download
A + native_client_sdk/src/libraries/nacl_io_socket_test/example.js View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
A + native_client_sdk/src/libraries/nacl_io_socket_test/index.html View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + native_client_sdk/src/libraries/nacl_io_socket_test/main.cc View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A native_client_sdk/src/libraries/nacl_io_socket_test/socket_test.cc View 1 2 3 4 5 1 chunk +191 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io_test/socket_test.cc View 1 2 3 4 5 6 2 chunks +5 lines, -10 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
noelallen1
ptal
7 years, 4 months ago (2013-08-09 06:16:02 UTC) #1
binji
https://codereview.chromium.org/22587003/diff/6001/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc File native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc (right): https://codereview.chromium.org/22587003/diff/6001/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc#newcode913 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc:913: if (AcquireSocketHandle(fd, &handle) == -1) no errno set if ...
7 years, 4 months ago (2013-08-09 19:28:06 UTC) #2
noelallen1
ptal https://codereview.chromium.org/22587003/diff/6001/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc File native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc (right): https://codereview.chromium.org/22587003/diff/6001/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc#newcode913 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc:913: if (AcquireSocketHandle(fd, &handle) == -1) On 2013/08/09 19:28:06, ...
7 years, 4 months ago (2013-08-09 22:53:21 UTC) #3
Sam Clegg
lgtm https://codereview.chromium.org/22587003/diff/6001/native_client_sdk/src/libraries/nacl_io_socket_test/socket_test.cc File native_client_sdk/src/libraries/nacl_io_socket_test/socket_test.cc (right): https://codereview.chromium.org/22587003/diff/6001/native_client_sdk/src/libraries/nacl_io_socket_test/socket_test.cc#newcode33 native_client_sdk/src/libraries/nacl_io_socket_test/socket_test.cc:33: uint16_t htons(uint16_t val) { On 2013/08/09 22:53:22, noelallen1 ...
7 years, 4 months ago (2013-08-09 23:07:59 UTC) #4
Sam Clegg
On 2013/08/09 23:07:59, Sam Clegg wrote: > lgtm > > https://codereview.chromium.org/22587003/diff/6001/native_client_sdk/src/libraries/nacl_io_socket_test/socket_test.cc > File native_client_sdk/src/libraries/nacl_io_socket_test/socket_test.cc (right): ...
7 years, 4 months ago (2013-08-09 23:08:24 UTC) #5
binji
lgtm, sorry for the long review... you know me. :) https://codereview.chromium.org/22587003/diff/6001/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc File native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc (right): https://codereview.chromium.org/22587003/diff/6001/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc#newcode1083 ...
7 years, 4 months ago (2013-08-09 23:08:27 UTC) #6
noelallen1
7 years, 4 months ago (2013-08-15 01:56:05 UTC) #7
Message was sent while issue was closed.
Committed patchset #12 manually as r217731 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698