Add 'src/be/nikiroo/utils/' from commit '46add0670fdee4bd936a13fe2448c5e20a7ffd0a'
[fanfix.git] / src / be / nikiroo / utils / serial / server / ConnectActionServerObject.java
index e0e4276059d7044e9c01d0e3b6b127d3e575ca95..07d986763438abeee1bc84e4ca97e984bf0688ee 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 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);
        }
 
        /**