* Notification that we have connected to the server. Do minimum handshaking.
*
* @return true if we should continue the connection, false if not.
*/
public boolean serverConnected(Socket clientSocket) {
MessageObject message = client.readMessage();
if (message == null)
{
return false;
}
if (!ProtocolConstants.HANDSHAKE_TYPE.equalsIgnoreCase(message.getMessageType())) {
logger.error("Incorrect server handshaking.");
return false;
}
localServer = new Server(new KillGradleServerProtocol());