C# Class SteamKit2.ServerClient

This is the root client class used to provide all the functionality required to connect to Steam2 servers.
Afficher le fichier Open project: Top-Cat/SteamBot

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Connect ( IPEndPoint endPoint ) : void

Connects to the specified end point.

Disconnect ( ) : void

Disconnects this instance.

ServerClient ( ) : System.Net

Initializes a new instance of the ServerClient class.

Méthodes protégées

Méthode Description
HandshakeServer ( ESteam2ServerType type ) : bool

Performs a handshake with the server.

SendCommand ( byte command ) : bool

Sends a command to the connected server. The return value of this function does not signify command success, only if the command was sent.

Method Details

Connect() public méthode

Connects to the specified end point.
public Connect ( IPEndPoint endPoint ) : void
endPoint System.Net.IPEndPoint The end point.
Résultat void

Disconnect() public méthode

Disconnects this instance.
public Disconnect ( ) : void
Résultat void

HandshakeServer() protected méthode

Performs a handshake with the server.
protected HandshakeServer ( ESteam2ServerType type ) : bool
type ESteam2ServerType The expected server type the client is handshaking with.
Résultat bool

SendCommand() protected méthode

Sends a command to the connected server. The return value of this function does not signify command success, only if the command was sent.
protected SendCommand ( byte command ) : bool
command byte The command type to send.
Résultat bool

ServerClient() public méthode

Initializes a new instance of the ServerClient class.
public ServerClient ( ) : System.Net
Résultat System.Net