Raw SocketDescriptor variant of UnixDomainServerSocket::Accept
commitca100d5970b0d0b9a3af96d180f5ea2862227a48
authorcmasone <cmasone@chromium.org>
Wed, 3 Sep 2014 18:11:11 +0000 (3 11:11 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 3 Sep 2014 18:15:42 +0000 (3 18:15 +0000)
tree74624fc2b0db4ab0a5cc05a89fa4d6d73e9f3a74
parent292bdba734f35d78a045b3cccf8c31fa6e4f4fce
Raw SocketDescriptor variant of UnixDomainServerSocket::Accept

The Mojo code on CrOS needs to accept inbound connections
on a unix domain socket, and then 'promote' the resulting
sockets to Mojo MessagePipes. This really requires access
to the underying file descriptor, so provide a mechanism
to accept a connection and get back a SocketDescriptor.

BUG=407782
TEST=UnixDomain*SocketTest
R=mmenke@chromium.org

Review URL: https://codereview.chromium.org/509133002

Cr-Commit-Position: refs/heads/master@{#293172}
net/socket/socket_libevent.cc
net/socket/socket_libevent.h
net/socket/unix_domain_client_socket_posix.cc
net/socket/unix_domain_client_socket_posix.h
net/socket/unix_domain_client_socket_posix_unittest.cc
net/socket/unix_domain_server_socket_posix.cc
net/socket/unix_domain_server_socket_posix.h