Android Open Source - async-socket-android Connection Handler






From Project

Back to project page async-socket-android.

License

The source code is released under:

This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a co...

If you think the Android project async-socket-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package net.omplanet.network.asyncsocket;
// w  w  w  . j  a  v a  2s  . c om
/**
 * This interface defines methods that handle connection notifications and the data received from the socket connection.
 * The methods are called from the background thread of the AsyncTask.
 * 
 * Created by StarWheel on 10/08/13.
 */
public interface ConnectionHandler {

    public void didReceiveData(String data);

    public void didDisconnect(Exception error);

    public void didConnect();
}




Java Source Code List

net.omplanet.network.asyncsocket.AsyncConnection.java
net.omplanet.network.asyncsocket.ConnectionHandler.java