C# 클래스 SteamKit2.ServerClient

This is the root client class used to provide all the functionality required to connect to Steam2 servers.
파일 보기 프로젝트 열기: Top-Cat/SteamBot

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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.

메소드 상세

Connect() 공개 메소드

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

Disconnect() 공개 메소드

Disconnects this instance.
public Disconnect ( ) : void
리턴 void

HandshakeServer() 보호된 메소드

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

SendCommand() 보호된 메소드

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.
리턴 bool

ServerClient() 공개 메소드

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