public static HandshakeMessage getDefaultMessage ( ) { HandshakeMessage message = new HandshakeMessage ( ) ; message . setProtocolString ( HandshakeMessage . PROTOCOL_STRING ) ; message . setReservedBits ( HandshakeMessage . PROTOCOL_RESERVED_BITS ) ; message . setStringLength ( HandshakeMessage . PROTOCOL_STRING_LENGTH ) ; message . setVersionNumber ( HandshakeMessage . PROTOCOL_VERSION ) ; return message ; }
Generates a basic handshake message according to the most recent protocol definition .