Class ClientMsgHandler

    • Constructor Detail

      • ClientMsgHandler

        public ClientMsgHandler()
    • Method Detail

      • isExpectDisconnection

        protected boolean isExpectDisconnection()
        Gets whether or not the related SteamClient should imminently expect the server to close the connection. If this is true when the connection is closed, the DisconnectedCallback's DisconnectedCallback.isUserInitiated() property will be set to true.
        Returns:
        whether or not the related SteamClient should imminently expect the server to close the connection.
      • setExpectDisconnection

        protected void setExpectDisconnection​(boolean expectDisconnection)
        Sets whether or not the related SteamClient should imminently expect the server to close the connection. If this is true when the connection is closed, the DisconnectedCallback's DisconnectedCallback.isUserInitiated() property will be set to true.
        Parameters:
        expectDisconnection - whether or not the related SteamClient should imminently expect the server to close the connection.
      • handleMsg

        public abstract void handleMsg​(IPacketMsg packetMsg)
        Handles a client message. This should not be called directly.
        Parameters:
        packetMsg - The packet message that contains the data.