Lines Matching defs:AsyncChannel

47  *   <li>Client calls AsyncChannel#connectSync or Asynchronously:</li>
48 * <ol>For an asynchronous half connection client calls AsyncChannel#connect.</ol>
49 * <li>Client receives CMD_CHANNEL_HALF_CONNECTED from AsyncChannel</li>
52 * <li>Client calls AsyncChannel#sendMessage</li>
53 * <li>Server processes messages and optionally replies using AsyncChannel#replyToMessage
55 * <li>When done Client calls {@link AsyncChannel#disconnect}</li>
56 * <li>Client/Server receives CMD_CHANNEL_DISCONNECTED from AsyncChannel</li>
65 * <li>Client calls AsyncChannel#fullyConnectSync or Asynchronously:<li>
66 * <ol>For an asynchronous full connection it calls AsyncChannel#connect</li>
67 * <li>Client receives CMD_CHANNEL_HALF_CONNECTED from AsyncChannel</li>
68 * <li>Client calls AsyncChannel#sendMessage(CMD_CHANNEL_FULL_CONNECTION)</li>
71 * <li>Server calls AsyncChannel#connected</li>
72 * <li>Server sends AsyncChannel#sendMessage(CMD_CHANNEL_FULLY_CONNECTED)</li>
75 * <li>Client/Server uses AsyncChannel#sendMessage/replyToMessage
78 * <li>When done Client/Server calls {@link AsyncChannel#disconnect}</li>
79 * <li>Client/Server receives CMD_CHANNEL_DISCONNECTED from AsyncChannel</li>
86 public class AsyncChannel {
88 private static final String TAG = "AsyncChannel";
105 * msg.obj == the AsyncChannel
125 * and {@link AsyncChannel#disconnect} would typically be called.
132 * the state of the connection. The receiver should call {@link AsyncChannel#disconnect}
148 * msg.obj == the AsyncChannel
205 * AsyncChannel constructor
207 public AsyncChannel() {
306 * msg.obj = the AsyncChannel
352 * msg.obj = the AsyncChannel
367 * msg.obj = the AsyncChannel
426 * msg.obj = the AsyncChannel