C# 클래스 SteamKit2.CDNClient

Represents a client able to connect to the Steam3 CDN and download games on the new content system.
파일 보기 프로젝트 열기: Top-Cat/SteamBot 1 사용 예제들

공개 메소드들

메소드 설명
CDNClient ( ClientEndPoint cdnServer, byte appticket ) : System

Initializes a new instance of the CDNClient class.

Connect ( ) : bool

Connects this instance to the server.

DownloadDepotChunk ( int depotid, string chunkid ) : byte[]

Downloads the specified depot chunk from the content server.

DownloadDepotManifest ( int depotid, ulong manifestid ) : DepotManifest

Downloads the depot manifest for the given depot and manifest.

FetchServerList ( ClientEndPoint csServer, int cellID ) : List

Fetches a server list from the given content server for the provided CellID.

PointTo ( ClientEndPoint ep ) : void

Points this CDNClient instance to another server.

ProcessChunk ( byte chunk, byte depotkey ) : byte[]

Processes a chunk by decrypting and decompressing it.

비공개 메소드들

메소드 설명
AuthDepot ( ) : void
BuildCommand ( ClientEndPoint csServer, string command ) : Uri
CDNClient ( ) : System
PrepareAuthHeader ( WebClient &client, Uri uri ) : void

메소드 상세

CDNClient() 공개 메소드

Initializes a new instance of the CDNClient class.
public CDNClient ( ClientEndPoint cdnServer, byte appticket ) : System
cdnServer ClientEndPoint The CDN server to connect to.
appticket byte The appticket of the app this instance is for.
리턴 System

Connect() 공개 메소드

Connects this instance to the server.
public Connect ( ) : bool
리턴 bool

DownloadDepotChunk() 공개 메소드

Downloads the specified depot chunk from the content server.
public DownloadDepotChunk ( int depotid, string chunkid ) : byte[]
depotid int The DepotID of the chunk to download.
chunkid string The the ID of the chunk to download.
리턴 byte[]

DownloadDepotManifest() 공개 메소드

Downloads the depot manifest for the given depot and manifest.
public DownloadDepotManifest ( int depotid, ulong manifestid ) : DepotManifest
depotid int The depotid.
manifestid ulong The manifestid.
리턴 DepotManifest

FetchServerList() 공개 정적인 메소드

Fetches a server list from the given content server for the provided CellID.
public static FetchServerList ( ClientEndPoint csServer, int cellID ) : List
csServer ClientEndPoint The server to request a server list from.
cellID int The CellID.
리턴 List

PointTo() 공개 메소드

Points this CDNClient instance to another server.
public PointTo ( ClientEndPoint ep ) : void
ep ClientEndPoint The endpoint.
리턴 void

ProcessChunk() 공개 정적인 메소드

Processes a chunk by decrypting and decompressing it.
public static ProcessChunk ( byte chunk, byte depotkey ) : byte[]
chunk byte The chunk to process.
depotkey byte The AES encryption key to use when decrypting the chunk.
리턴 byte[]