/* * Created by Andrey Cherkashin (acherkashin) * http://acherkashin.me * * License * Copyright (c) 2015 Andrey Cherkashin * The project released under the MIT license: http://opensource.org/licenses/MIT */ package ragefist.core.network; import java.io.IOException; import java.nio.ByteBuffer; /** * * @author acherkashin */ public interface ISocketStrategy { public byte[][] readPackets(SocketClient socket, ByteBuffer readBuffer) throws IOException; public int writePacket(SocketClient socket, String packet) throws IOException; public int writePacket(SocketClient socket, byte[] bytes) throws IOException; }