Show / Hide Table of Contents

Class XorEncryptLayer

Inheritance
object
PacketLayerBase
XorEncryptLayer
Inherited Members
PacketLayerBase.ExtraPacketSizeForLayer
Namespace: LiteNetLib.Layers
Assembly: LiteNetLib.dll
Syntax
public class XorEncryptLayer : PacketLayerBase

Constructors

XorEncryptLayer()

Declaration
public XorEncryptLayer()

XorEncryptLayer(byte[])

Declaration
public XorEncryptLayer(byte[] key)
Parameters
Type Name Description
byte[] key

XorEncryptLayer(string)

Declaration
public XorEncryptLayer(string key)
Parameters
Type Name Description
string key

Methods

ProcessInboundPacket(ref IPEndPoint, ref byte[], ref int)

Declaration
public override void ProcessInboundPacket(ref IPEndPoint endPoint, ref byte[] data, ref int length)
Parameters
Type Name Description
IPEndPoint endPoint
byte[] data
int length
Overrides
PacketLayerBase.ProcessInboundPacket(ref IPEndPoint, ref byte[], ref int)

ProcessOutBoundPacket(ref IPEndPoint, ref byte[], ref int, ref int)

Declaration
public override void ProcessOutBoundPacket(ref IPEndPoint endPoint, ref byte[] data, ref int offset, ref int length)
Parameters
Type Name Description
IPEndPoint endPoint
byte[] data
int offset
int length
Overrides
PacketLayerBase.ProcessOutBoundPacket(ref IPEndPoint, ref byte[], ref int, ref int)

SetKey(byte[])

Declaration
public void SetKey(byte[] key)
Parameters
Type Name Description
byte[] key

SetKey(string)

Declaration
public void SetKey(string key)
Parameters
Type Name Description
string key
In this article
Back to top Generated by DocFX