Added handshake response sending to server lib.