diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2012-04-02 07:48:19 -0700 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2012-04-02 07:48:19 -0700 |
commit | 6dc5c2cef91004488f04fc6e9c0946f6d3a29705 (patch) | |
tree | 41fdf1c93fef544aea1a08a5066dbb3f26df6351 /android/async-utils.h | |
parent | a7383ef4eb8d3863c8d582ea0d6b2ddb42125cba (diff) | |
download | external_qemu-6dc5c2cef91004488f04fc6e9c0946f6d3a29705.zip external_qemu-6dc5c2cef91004488f04fc6e9c0946f6d3a29705.tar.gz external_qemu-6dc5c2cef91004488f04fc6e9c0946f6d3a29705.tar.bz2 |
Refactor asynchronous socket APIs
The initial implementation was a bit too complex in two ways:
1. Each component (the connector, and async socket) had its own set of state and
action enums, which was confusing, required value translation, and was not really
needed. So, all these enums have been combined into two common enums that are now
declared in android/async-io-common.h
2. Too many callbacks, which really complicated implementation of the clients. It is
much more efficient to have just two callbacks (one to monitor connection, and another
to monitor I/O), letting the client to dispatch on particular event (success/timeout/etc.)
This CL fixes these two issues.
Change-Id: I545c93dee2e9e9c72c1d25e6cd218c8680933ee3
Diffstat (limited to 'android/async-utils.h')
0 files changed, 0 insertions, 0 deletions