Add 'src/be/nikiroo/utils/' from commit '46add0670fdee4bd936a13fe2448c5e20a7ffd0a'
[nikiroo-utils.git] / src / be / nikiroo / utils / serial / server / ConnectActionServerString.java
index 35dd4dd1985fb810c8300d4a810f16f227efd5a8..8d113c1dc5db3fe968ed0f10b6fae59fbdb62be3 100644 (file)
@@ -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.
  * <p>
@@ -15,27 +13,16 @@ import be.nikiroo.utils.Version;
  */
 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}.
+        * Create a new {@link ConnectActionServerString} 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 ConnectActionServerString(Socket s, Version version) {
-               super(s, version);
+       public ConnectActionServerString(Socket s, String key) {
+               super(s, key);
        }
 
        /**