Show / Hide Table of Contents

Class NetWrapper

Inheritance
object
NetWrapper
Implements
IDisposable
INetWrapper
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SlipeServer.Net.Wrappers
Assembly: SlipeServer.Net.dll
Syntax
public class NetWrapper : IDisposable, INetWrapper

Constructors

| Edit this page View Source

NetWrapper(string, string, string, ushort)

Declaration
public NetWrapper(string directory, string netDllPath, string host, ushort port)
Parameters
Type Name Description
string directory
string netDllPath
string host
ushort port

Methods

| Edit this page View Source

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()
| Edit this page View Source

GetClientSerialExtraAndVersion(ulong)

Declaration
public Tuple<string, string, string> GetClientSerialExtraAndVersion(ulong binaryAddress)
Parameters
Type Name Description
ulong binaryAddress
Returns
Type Description
Tuple<string, string, string>
| Edit this page View Source

GetPlayerIp(ulong)

Declaration
public IPAddress GetPlayerIp(ulong binaryAddress)
Parameters
Type Name Description
ulong binaryAddress
Returns
Type Description
IPAddress
| Edit this page View Source

PacketInterceptor(byte, ulong, nint, uint, bool, uint)

Declaration
protected virtual void PacketInterceptor(byte packetId, ulong binaryAddress, nint payload, uint payloadSize, bool hasPing, uint ping)
Parameters
Type Name Description
byte packetId
ulong binaryAddress
nint payload
uint payloadSize
bool hasPing
uint ping
| Edit this page View Source

ResendModPackets(ulong)

Declaration
public void ResendModPackets(ulong binaryAddress)
Parameters
Type Name Description
ulong binaryAddress
| Edit this page View Source

ResendPlayerACInfo(ulong)

Declaration
public void ResendPlayerACInfo(ulong binaryAddress)
Parameters
Type Name Description
ulong binaryAddress
| Edit this page View Source

SendPacket(ulong, PacketId, ushort, byte[], PacketPriority, PacketReliability)

Declaration
public void SendPacket(ulong binaryAddress, PacketId packetId, ushort bitStreamVersion, byte[] data, PacketPriority priority = PacketPriority.High, PacketReliability reliability = PacketReliability.ReliableSequenced)
Parameters
Type Name Description
ulong binaryAddress
PacketId packetId
ushort bitStreamVersion
byte[] data
PacketPriority priority
PacketReliability reliability
| Edit this page View Source

SendPacket(ulong, byte, ushort, byte[], PacketPriority, PacketReliability)

Declaration
protected virtual void SendPacket(ulong binaryAddress, byte packetId, ushort bitStreamVersion, byte[] payload, PacketPriority priority, PacketReliability reliability)
Parameters
Type Name Description
ulong binaryAddress
byte packetId
ushort bitStreamVersion
byte[] payload
PacketPriority priority
PacketReliability reliability
| Edit this page View Source

SendPacket(ulong, ushort, Packet)

Declaration
public void SendPacket(ulong binaryAddress, ushort bitStreamVersion, Packet packet)
Parameters
Type Name Description
ulong binaryAddress
ushort bitStreamVersion
Packet packet
| Edit this page View Source

SetAntiCheatConfig(IEnumerable<AntiCheat>, bool, AllowGta3ImgMods, IEnumerable<SpecialDetection>, DataFile)

Declaration
public void SetAntiCheatConfig(IEnumerable<AntiCheat> disabledAntiCheats, bool hideAntiCheatFromClient, AllowGta3ImgMods allowGta3ImgMods, IEnumerable<SpecialDetection> enabledSpecialDetections, DataFile disallowedDataFiles)
Parameters
Type Name Description
IEnumerable<AntiCheat> disabledAntiCheats
bool hideAntiCheatFromClient
AllowGta3ImgMods allowGta3ImgMods
IEnumerable<SpecialDetection> enabledSpecialDetections
DataFile disallowedDataFiles
| Edit this page View Source

SetVersion(ulong, ushort)

Declaration
public void SetVersion(ulong binaryAddress, ushort version)
Parameters
Type Name Description
ulong binaryAddress
ushort version
| Edit this page View Source

Start()

Declaration
public void Start()
| Edit this page View Source

Stop()

Declaration
public void Stop()

Events

| Edit this page View Source

PacketReceived

Declaration
public event Action<INetWrapper, ulong, PacketId, byte[], uint?>? PacketReceived
Event Type
Type Description
Action<INetWrapper, ulong, PacketId, byte[], uint?>

Implements

IDisposable
INetWrapper
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX