import java.io.IOException;
import java.net.Socket;
-import be.nikiroo.utils.Version;
-
/**
* Class used for the server basic handling.
* <p>
*/
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);
}
/**