X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbe%2Fnikiroo%2Futils%2Fserial%2Fserver%2FConnectActionServerString.java;h=8d113c1dc5db3fe968ed0f10b6fae59fbdb62be3;hb=3519cb5c518d569235beaedfc3071cba45ec848d;hp=35dd4dd1985fb810c8300d4a810f16f227efd5a8;hpb=79ce1a4973eba079ba819ba841d906de42f38e40;p=fanfix.git diff --git a/src/be/nikiroo/utils/serial/server/ConnectActionServerString.java b/src/be/nikiroo/utils/serial/server/ConnectActionServerString.java deleted file mode 100644 index 35dd4dd..0000000 --- a/src/be/nikiroo/utils/serial/server/ConnectActionServerString.java +++ /dev/null @@ -1,65 +0,0 @@ -package be.nikiroo.utils.serial.server; - -import java.io.IOException; -import java.net.Socket; - -import be.nikiroo.utils.Version; - -/** - * Class used for the server basic handling. - *

- * It represents a single action: a server is expected to execute one action for - * each client action. - * - * @author niki - */ -public class ConnectActionServerString extends ConnectActionServer { - /** - * Create a new {@link ConnectActionServerString} with the current - * application version (see {@link Version#getCurrentVersion()}) as the - * server version. - * - * @param s - * the socket to bind to - */ - public ConnectActionServerString(Socket s) { - super(s); - } - - /** - * Create a new {@link ConnectActionServerString}. - * - * @param s - * the socket to bind to - * @param version - * the server version - */ - public ConnectActionServerString(Socket s, Version version) { - super(s, version); - } - - /** - * Serialise and send the given object to the client. - * - * @param data - * the data to send - * - * @throws IOException - * in case of I/O error - */ - public void send(String data) throws IOException { - action.sendString(data); - } - - /** - * (Flush the data to the client if needed and) retrieve its answer. - * - * @return the answer if it is available, or NULL if not - * - * @throws IOException - * in case of I/O error - */ - public String rec() throws IOException { - return action.recString(); - } -}