C# Class Ark.Packet

显示文件 Open project: prom3theu5/iNGEN-Ark-RCON-Desktop Class Usage Examples

Public Methods

Method Description
DataAsString ( ) : string
Packet ( ) : System
Packet ( Opcode opcode, PacketType type ) : System
Packet ( Opcode opcode, PacketType type, byte data ) : System
Packet ( Opcode opcode, PacketType type, int data ) : System
Packet ( Opcode opcode, PacketType type, string data ) : System
ReadFromStreamAsync ( NetworkStream stream ) : Task
WriteToStreamAsync ( NetworkStream stream ) : System.Threading.Tasks.Task

Method Details

DataAsString() public method

public DataAsString ( ) : string
return string

Packet() public method

public Packet ( ) : System
return System

Packet() public method

public Packet ( Opcode opcode, PacketType type ) : System
opcode Opcode
type PacketType
return System

Packet() public method

public Packet ( Opcode opcode, PacketType type, byte data ) : System
opcode Opcode
type PacketType
data byte
return System

Packet() public method

public Packet ( Opcode opcode, PacketType type, int data ) : System
opcode Opcode
type PacketType
data int
return System

Packet() public method

public Packet ( Opcode opcode, PacketType type, string data ) : System
opcode Opcode
type PacketType
data string
return System

ReadFromStreamAsync() public static method

public static ReadFromStreamAsync ( NetworkStream stream ) : Task
stream System.Net.Sockets.NetworkStream
return Task

WriteToStreamAsync() public method

public WriteToStreamAsync ( NetworkStream stream ) : System.Threading.Tasks.Task
stream System.Net.Sockets.NetworkStream
return System.Threading.Tasks.Task