server: add a HELLO handshake
[fanfix.git] / src / be / nikiroo / utils / serial / server / ServerObject.java
index f79776696cdc2e6c5fae13e6ed0f733c814268c2..dcd1badd1ad4ade60b87313c3b0960b2b883752e 100644 (file)
@@ -95,6 +95,13 @@ abstract public class ServerObject extends Server {
                };
        }
 
+       @Override
+       protected ConnectActionClient getConnectionToMe()
+                       throws UnknownHostException, IOException {
+               return new ConnectActionClientObject(new Socket((String) null,
+                               getPort()), key);
+       }
+
        /**
         * This is the method that is called on each client request.
         * <p>