Class SteamGameServer
- java.lang.Object
-
- in.dragonbra.javasteam.handlers.ClientMsgHandler
-
- in.dragonbra.javasteam.steam.handlers.steamgameserver.SteamGameServer
-
public class SteamGameServer extends ClientMsgHandler
This handler is used for interacting with the Steam network as a game server.
-
-
Field Summary
-
Fields inherited from class in.dragonbra.javasteam.handlers.ClientMsgHandler
client
-
-
Constructor Summary
Constructors Constructor Description SteamGameServer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleMsg(IPacketMsg packetMsg)Handles a client message.voidlogOff()Informs the Steam servers that this client wishes to log off from the network.voidlogOn(LogOnDetails details)Logs onto the Steam network as a persistent game server.voidlogOnAnonymous()Logs the client into the Steam3 network as an anonymous game server.voidlogOnAnonymous(int appId)Logs the client into the Steam3 network as an anonymous game server.voidsendStatus(StatusDetails details)Sends the server's status to the Steam network.-
Methods inherited from class in.dragonbra.javasteam.handlers.ClientMsgHandler
getClient, isExpectDisconnection, setExpectDisconnection, setup
-
-
-
-
Method Detail
-
logOn
public void logOn(LogOnDetails details)
Logs onto the Steam network as a persistent game server. The client should already have been connected at this point. Results are return in aLoggedOnCallback.- Parameters:
details- The details to use for logging on.
-
logOnAnonymous
public 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 return in aLoggedOnCallback.
-
logOnAnonymous
public void logOnAnonymous(int appId)
Logs the client into the Steam3 network as an anonymous game server. The client should already have been connected at this point. Results are return in aLoggedOnCallback.- Parameters:
appId- The AppID served by this game server, or 0 for the default.
-
logOff
public void logOff()
Informs the Steam servers that this client wishes to log off from the network. The Steam server will disconnect the client, and aDisconnectedCallbackwill be posted.
-
sendStatus
public void sendStatus(StatusDetails details)
Sends the server's status to the Steam network. Results are returned in aStatusReplyCallbackcallback.- Parameters:
details- AStatusDetailsobject containing the server's status.
-
handleMsg
public void handleMsg(IPacketMsg packetMsg)
Description copied from class:ClientMsgHandlerHandles a client message. This should not be called directly.- Specified by:
handleMsgin classClientMsgHandler- Parameters:
packetMsg- The packet message that contains the data.
-
-