History log of /external/qemu/android/async-io-common.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c8aa2c570d30098da59f1967d5158024ed28570d 06-Apr-2012 Vladimir Chtchetkine <vchtchetkine@google.com> Implements SDKCtlSocket that implements communication protocol wih SdkController

In addition, this CL contains some minor tweaks to async-socket, and
async-socket-connector that improve tracebility.

Change-Id: Ib1309b19dcd02e96379155fea7015019d93160e7
/external/qemu/android/async-io-common.h
6dc5c2cef91004488f04fc6e9c0946f6d3a29705 02-Apr-2012 Vladimir Chtchetkine <vchtchetkine@google.com> 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
/external/qemu/android/async-io-common.h