C# Класс SteamKit2.SteamGameServer

This handler is used for interacting with the Steam network as a game server.
Наследование: ClientMsgHandler
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
HandleMsg ( IPacketMsg packetMsg ) : void

Handles a client message. This should not be called directly.

LogOff ( ) : void

Logs the game server off of the Steam3 network. This method does not disconnect the client. Results are returned in a SteamUser.LoggedOffCallback.

LogOn ( LogOnDetails details ) : void

Logs onto the Steam network as a persistent game server. The client should already have been connected at this point. Results are return in a SteamUser.LoggedOnCallback.

LogOnAnonymous ( uint appId ) : void

Logs the client into the Steam3 network as an anonymous game server. The client should already have been connected at this point. Results are returned in a SteamUser.LoggedOnCallback.

Приватные методы

Метод Описание
HandleAuthComplete ( IPacketMsg packetMsg ) : void
HandleStatusReply ( IPacketMsg packetMsg ) : void
SteamGameServer ( ) : System

Описание методов

HandleMsg() публичный Метод

Handles a client message. This should not be called directly.
public HandleMsg ( IPacketMsg packetMsg ) : void
packetMsg IPacketMsg The packet message that contains the data.
Результат void

LogOff() публичный Метод

Logs the game server off of the Steam3 network. This method does not disconnect the client. Results are returned in a SteamUser.LoggedOffCallback.
public LogOff ( ) : void
Результат void

LogOn() публичный Метод

Logs onto the Steam network as a persistent game server. The client should already have been connected at this point. Results are return in a SteamUser.LoggedOnCallback.
No logon details were provided. Username or password are not set within .
public LogOn ( LogOnDetails details ) : void
details LogOnDetails The details to use for logging on.
Результат void

LogOnAnonymous() публичный Метод

Logs the client into the Steam3 network as an anonymous game server. The client should already have been connected at this point. Results are returned in a SteamUser.LoggedOnCallback.
public LogOnAnonymous ( uint appId ) : void
appId uint The AppID served by this game server, or 0 for the default.
Результат void