Class XorEncryptLayer
Inheritance
XorEncryptLayer
Assembly: LiteNetLib.dll
Syntax
public class XorEncryptLayer : PacketLayerBase
Constructors
XorEncryptLayer()
Declaration
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
Overrides
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
Overrides
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 |
|