public class SendHandshakeResponsePacket
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static byte[] |
_CLIENT_NAME |
private static byte[] |
_CLIENT_VERSION |
private static byte[] |
_JAVA_VENDOR |
private static byte[] |
_JAVA_VERSION |
private static byte[] |
_OS |
private static byte[] |
_PID |
private static byte[] |
_SERVER_HOST |
private static byte[] |
_THREAD |
private static java.util.function.Supplier<java.lang.String> |
pidRequest |
Constructor and Description |
---|
SendHandshakeResponsePacket() |
Modifier and Type | Method and Description |
---|---|
static void |
send(PacketOutputStream pos,
java.lang.String username,
java.lang.String password,
HostAddress currentHost,
java.lang.String database,
long clientCapabilities,
long serverCapabilities,
byte serverLanguage,
byte packetSeq,
Options options,
ReadInitialHandShakePacket greetingPacket)
Send handshake response packet.
|
private static void |
writeConnectAttributes(PacketOutputStream pos,
java.lang.String connectionAttributes,
HostAddress currentHost) |
private static final java.util.function.Supplier<java.lang.String> pidRequest
private static final byte[] _CLIENT_NAME
private static final byte[] _CLIENT_VERSION
private static final byte[] _SERVER_HOST
private static final byte[] _OS
private static final byte[] _PID
private static final byte[] _THREAD
private static final byte[] _JAVA_VENDOR
private static final byte[] _JAVA_VERSION
public static void send(PacketOutputStream pos, java.lang.String username, java.lang.String password, HostAddress currentHost, java.lang.String database, long clientCapabilities, long serverCapabilities, byte serverLanguage, byte packetSeq, Options options, ReadInitialHandShakePacket greetingPacket) throws java.io.IOException
pos
- output streamusername
- user namepassword
- passwordcurrentHost
- current hostnamedatabase
- database nameclientCapabilities
- client capabilitiesserverCapabilities
- server capabilitiesserverLanguage
- server language (utf8 / utf8mb4 collation)packetSeq
- packet sequenceoptions
- user optionsgreetingPacket
- server handshake packet informationjava.io.IOException
- if socket exception occurprivate static void writeConnectAttributes(PacketOutputStream pos, java.lang.String connectionAttributes, HostAddress currentHost) throws java.io.IOException
java.io.IOException