public class SendHandshakeResponsePacket extends Object
client_flags: CLIENT_xxx options. The list of possible flag values is in the description of the Handshake Initialisation Packet, for server_capabilities. For some of the bits, the server passed "what it's capable of". The client leaves some of the bits on, adds others, and passes back to the server. One important flag is: whether compression is desired.
max_packet_size: the maximum number of bytes in a stream for the client
charset_number: in the same domain as the server_language field that the server passes in the Handshake Initialization stream.
user: identification
scramble_buff: the password, after encrypting using the scramble_buff contents passed by the server (see "Password functions" section elsewhere in this document) if length is zero, no password was given
databasename: name of schema to use initially
Constructor and Description |
---|
SendHandshakeResponsePacket() |
Modifier and Type | Method and Description |
---|---|
static void |
send(PacketOutputStream pos,
String username,
String password,
String database,
long clientCapabilities,
long serverCapabilities,
byte serverLanguage,
byte[] seed,
byte packetSeq,
String plugin,
Options options)
Send handshake response packet.
|
public static void send(PacketOutputStream pos, String username, String password, String database, long clientCapabilities, long serverCapabilities, byte serverLanguage, byte[] seed, byte packetSeq, String plugin, Options options) throws IOException
pos
- output streamusername
- user namepassword
- passworddatabase
- database nameclientCapabilities
- client capabilitiesserverCapabilities
- server capabilitiesserverLanguage
- server language (utf8 / utf8mb4 collation)seed
- seedpacketSeq
- packet sequenceplugin
- plugin nameoptions
- user optionsIOException
- if socket exception occurCopyright © 2017. All rights reserved.