Class SteamGameServer


  • public class SteamGameServer
    extends ClientMsgHandler
    This handler is used for interacting with the Steam network as a game server.
    • Constructor Detail

      • SteamGameServer

        public SteamGameServer()
    • 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 a LoggedOnCallback.
        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 a LoggedOnCallback.
      • 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 a LoggedOnCallback.
        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 a DisconnectedCallback will be posted.
      • sendStatus

        public void sendStatus​(StatusDetails details)
        Sends the server's status to the Steam network. Results are returned in a StatusReplyCallback callback.
        Parameters:
        details - A StatusDetails object containing the server's status.
      • handleMsg

        public void handleMsg​(IPacketMsg packetMsg)
        Description copied from class: ClientMsgHandler
        Handles a client message. This should not be called directly.
        Specified by:
        handleMsg in class ClientMsgHandler
        Parameters:
        packetMsg - The packet message that contains the data.