Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
Loading...
Searching...
No Matches
EncryptionRequest Class Reference

Encryption Request Packet. More...

#include <encryptionexchange.h>

Inheritance diagram for EncryptionRequest:
IPacket

Public Member Functions

 EncryptionRequest (std::byte *verifyToken, int verifyTokenLength)
 Construct a new Encryption Request object.
 
 ~EncryptionRequest () override=default
 Destroy the Encryption Request object.
 
void read (IMCStream *stream) override
 
- Public Member Functions inherited from IPacket
virtual ~IPacket ()=default
 Destroy the IPacket object.
 
void send (IMCStream *stream)
 Sends a Packet in Minecraft format.
 

Public Attributes

std::byte * verifyToken
 The pointer to the verify token.
 
int verifyTokenLength
 The length of the verify token.
 
- Public Attributes inherited from IPacket
int id
 Packet Id.
 

Additional Inherited Members

- Protected Member Functions inherited from IPacket
 IPacket (int id)
 Construct a new IPacket object.
 

Detailed Description

Encryption Request Packet.

Used in protocol encryption scheme, for the server to ask to the client.

It is not exposed to lua for security reasons. A plugin should not handle encryption and stuff.

Constructor & Destructor Documentation

◆ EncryptionRequest()

EncryptionRequest::EncryptionRequest ( std::byte * verifyToken,
int verifyTokenLength )
inline

Construct a new Encryption Request object.

Parameters
verifyTokenthe verify token pointer
verifyTokenLengththe length of the verify token

Member Function Documentation

◆ read()

void EncryptionRequest::read ( IMCStream * stream)
overridevirtual
Deprecated
should not be used, useless

Implements IPacket.


The documentation for this class was generated from the following files: