| 6 | * |
| 7 | * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. |
| 8 | * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. |
| 9 | * Neither the name of the <ORGANIZATION> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. |
| 10 | * |
| 11 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, |
| 12 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
| 13 | * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, |
| 14 | * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
| 15 | * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 16 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 17 | */ |
| 18 |
| 19 | package jawnae.pyronet; |
| 20 |
| 21 | import org.telegram.messenger.ConnectionsManager; |
| 22 | import org.telegram.messenger.FileLog; |
| 23 |
| 24 | import java.io.IOException; |
| 25 | import java.nio.ByteBuffer; |
| 26 |
| 27 | public class PyroClientAdapter implements PyroClientListener { |
| 28 | public void connectedClient(PyroClient client) { |
| 29 | // |
| 30 | } |
| 31 |
| 32 | public void unconnectableClient(PyroClient client, Exception cause) { |
| 33 | if (ConnectionsManager.DEBUG_VERSION) { |
| 34 | FileLog.e("tmessages", "unconnectable"); |
| 35 | } |
| 36 | } |
| 37 |
| 38 | public void droppedClient(PyroClient client, IOException cause) { |
| 39 | if (cause != null) { |
| 40 | if (ConnectionsManager.DEBUG_VERSION) { |
| 41 | FileLog.e("tmessages", this.getClass().getSimpleName() + ".droppedClient() caught exception: " + cause); |
| 42 | } |
| 43 | } |
| 44 | } |
| 45 |
| 46 | public void disconnectedClient(PyroClient client) { |
| 47 | // |
| 48 | } |
| 49 |
| 50 | // |
| 51 |
| 52 | public void receivedData(PyroClient client, ByteBuffer data) { |
| 53 | // |
| 54 | } |
| 55 |
| 56 | public void sentData(PyroClient client, int bytes) { |
| 57 | // |
| 58 | } |
| 59 | } |
| 60 |