| commit | 553d98af897f7202de5e5a776287de0b5ca8fe39 | [log] [tgz] |
|---|---|---|
| author | Elliott Hughes <enh@google.com> | Thu May 19 13:50:09 2011 -0700 |
| committer | Elliott Hughes <enh@google.com> | Thu May 19 14:41:40 2011 -0700 |
| tree | 94168c2481a355c5e2801bdcfcbe67eb1bec68a2 | |
| parent | ae01ebf69d7d2e38eb66c40e0ebacd3b118acfc7 [diff] |
Expose accept(2). The implementation of PlainSocketImpl.accept is made ugly by the fact that the SocketImpl we mutate may share its FileDescriptor with a SocketChannel, so we need to mutate the FileDescriptor itself, and can't simply swap in a new one. I've raised http://b/4452981 to see if we can integrate the nio and io socket classes more closely, to avoid this kind of mess. Bug: 3107501 Change-Id: I4964b64c25e936a44d1e4c22504ca29bba247ab6