C# Class mhe.Protocol

Afficher le fichier Open project: icedmaster/mhe Class Usage Examples

Méthodes publiques

Méthode Description
Connect ( string host, int port ) : bool
EncodeIntFromString ( string s ) : byte[]
EncodeString ( string s ) : byte[]
IsGlobalCommand ( Command cmd ) : bool
ParseFloat ( ByteStream stream ) : float
ParseInt ( ByteStream stream ) : int
ParseProfilerData ( string data ) : string
ParseString ( ByteStream stream ) : string
SendCPUProfilerCommand ( OnAnswer onAnswer ) : void
SendCommand ( Command cmd, byte args, OnAnswer onAnswer ) : void
SendGPUProfilerCommand ( OnAnswer onAnswer ) : void
SendGetAllCommand ( OnAnswer onAnswer ) : void
SendGetStatsCommand ( OnAnswer onAnswer ) : void
SendSetVarCommand ( byte varData, OnAnswer onAnswer ) : void

Private Methods

Méthode Description
ConvertToBytes ( int n ) : byte[]
ConvertToInt ( byte data ) : int
ParseProfilerDataString ( string data ) : List
Receive ( System.Result &result, byte &data ) : bool
Send ( Command cmd, byte data ) : bool

Method Details

Connect() public méthode

public Connect ( string host, int port ) : bool
host string
port int
Résultat bool

EncodeIntFromString() public static méthode

public static EncodeIntFromString ( string s ) : byte[]
s string
Résultat byte[]

EncodeString() public static méthode

public static EncodeString ( string s ) : byte[]
s string
Résultat byte[]

IsGlobalCommand() public méthode

public IsGlobalCommand ( Command cmd ) : bool
cmd Command
Résultat bool

ParseFloat() public static méthode

public static ParseFloat ( ByteStream stream ) : float
stream ByteStream
Résultat float

ParseInt() public static méthode

public static ParseInt ( ByteStream stream ) : int
stream ByteStream
Résultat int

ParseProfilerData() public méthode

public ParseProfilerData ( string data ) : string
data string
Résultat string

ParseString() public static méthode

public static ParseString ( ByteStream stream ) : string
stream ByteStream
Résultat string

SendCPUProfilerCommand() public méthode

public SendCPUProfilerCommand ( OnAnswer onAnswer ) : void
onAnswer OnAnswer
Résultat void

SendCommand() public méthode

public SendCommand ( Command cmd, byte args, OnAnswer onAnswer ) : void
cmd Command
args byte
onAnswer OnAnswer
Résultat void

SendGPUProfilerCommand() public méthode

public SendGPUProfilerCommand ( OnAnswer onAnswer ) : void
onAnswer OnAnswer
Résultat void

SendGetAllCommand() public méthode

public SendGetAllCommand ( OnAnswer onAnswer ) : void
onAnswer OnAnswer
Résultat void

SendGetStatsCommand() public méthode

public SendGetStatsCommand ( OnAnswer onAnswer ) : void
onAnswer OnAnswer
Résultat void

SendSetVarCommand() public méthode

public SendSetVarCommand ( byte varData, OnAnswer onAnswer ) : void
varData byte
onAnswer OnAnswer
Résultat void