X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Futils%2Fserial%2Fserver%2FConnectActionServerObject.java;h=07d986763438abeee1bc84e4ca97e984bf0688ee;hb=9a85c386a8d7407b293b8520c2f7b538afa59045;hp=e0e4276059d7044e9c01d0e3b6b127d3e575ca95;hpb=79ce1a4973eba079ba819ba841d906de42f38e40;p=nikiroo-utils.git diff --git a/src/be/nikiroo/utils/serial/server/ConnectActionServerObject.java b/src/be/nikiroo/utils/serial/server/ConnectActionServerObject.java index e0e4276..07d9867 100644 --- a/src/be/nikiroo/utils/serial/server/ConnectActionServerObject.java +++ b/src/be/nikiroo/utils/serial/server/ConnectActionServerObject.java @@ -3,8 +3,6 @@ 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. *
@@ -15,27 +13,16 @@ import be.nikiroo.utils.Version; */ public class ConnectActionServerObject extends ConnectActionServer { /** - * Create a new {@link ConnectActionServerObject} with the current - * application version (see {@link Version#getCurrentVersion()}) as the - * server version. - * - * @param s - * the socket to bind to - */ - public ConnectActionServerObject(Socket s) { - super(s); - } - - /** - * Create a new {@link ConnectActionServerObject}. + * Create a new {@link ConnectActionServerObject} as the server version. * * @param s * the socket to bind to - * @param version - * the server version + * @param key + * an optional key to encrypt all the communications (if NULL, + * everything will be sent in clear text) */ - public ConnectActionServerObject(Socket s, Version version) { - super(s, version); + public ConnectActionServerObject(Socket s, String key) { + super(s, key); } /**