server: add a HELLO handshake
[fanfix.git] / src / be / nikiroo / utils / serial / server / ConnectActionClientString.java
index 35a01d8233bfa0e189f094514298134a73e0d604..17da668a6db7f5e737f683d270e9396509d35d4f 100644 (file)
@@ -4,8 +4,6 @@ import java.io.IOException;
 import java.net.Socket;
 import java.net.UnknownHostException;
 
-import be.nikiroo.utils.Version;
-
 /**
  * Class used for the client basic handling.
  * <p>
@@ -16,9 +14,7 @@ import be.nikiroo.utils.Version;
  */
 public class ConnectActionClientString extends ConnectActionClient {
        /**
-        * Create a new {@link ConnectActionClientString} with the current
-        * application version (see {@link Version#getCurrentVersion()}) as the
-        * client version.
+        * Create a new {@link ConnectActionClientString}.
         * 
         * @param s
         *            the socket to bind to
@@ -31,9 +27,7 @@ public class ConnectActionClientString extends ConnectActionClient {
        }
 
        /**
-        * Create a new {@link ConnectActionClientString} with the current
-        * application version (see {@link Version#getCurrentVersion()}) as the
-        * client version.
+        * Create a new {@link ConnectActionClientString}.
         * 
         * @param host
         *            the host to bind to
@@ -56,47 +50,6 @@ public class ConnectActionClientString extends ConnectActionClient {
                super(host, port, key);
        }
 
-       /**
-        * Create a new {@link ConnectActionClientString}.
-        * 
-        * @param host
-        *            the host to bind to
-        * @param port
-        *            the port to bind to
-        * @param key
-        *            an optional key to encrypt all the communications (if NULL,
-        *            everything will be sent in clear text)
-        * @param version
-        *            the client version
-        * 
-        * @throws IOException
-        *             in case of I/O error
-        * @throws UnknownHostException
-        *             if the IP address of the host could not be determined
-        * @throws IllegalArgumentException
-        *             if the port parameter is outside the specified range of valid
-        *             port values, which is between 0 and 65535, inclusive
-        */
-       public ConnectActionClientString(String host, int port, String key,
-                       Version version) throws IOException {
-               super(host, port, key, version);
-       }
-
-       /**
-        * Create a new {@link ConnectActionClientString}.
-        * 
-        * @param s
-        *            the socket to bind to
-        * @param key
-        *            an optional key to encrypt all the communications (if NULL,
-        *            everything will be sent in clear text)
-        * @param version
-        *            the client version
-        */
-       public ConnectActionClientString(Socket s, String key, Version version) {
-               super(s, key, version);
-       }
-
        /**
         * Send the given object to the server (and return the answer).
         *