C# Class SteamKit2.ServerClient

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

Private Properties

Property Type Description

Public Methods

Method 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.

Protected Methods

Method 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 method

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

Disconnect() public method

Disconnects this instance.
public Disconnect ( ) : void
return void

HandshakeServer() protected method

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

SendCommand() protected method

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.
return bool

ServerClient() public method

Initializes a new instance of the ServerClient class.
public ServerClient ( ) : System.Net
return System.Net