public abstract class ClientMsgHandler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected SteamClient |
client |
| Constructor and Description |
|---|
ClientMsgHandler() |
| Modifier and Type | Method and Description |
|---|---|
SteamClient |
getClient() |
abstract void |
handleMsg(IPacketMsg packetMsg)
Handles a client message.
|
protected boolean |
isExpectDisconnection()
Gets whether or not the related
SteamClient should imminently expect the server to close the connection. |
protected void |
setExpectDisconnection(boolean expectDisconnection)
Sets whether or not the related
SteamClient should imminently expect the server to close the connection. |
void |
setup(SteamClient client) |
protected SteamClient client
public void setup(SteamClient client)
protected boolean isExpectDisconnection()
SteamClient should imminently expect the server to close the connection.
If this is true when the connection is closed, the DisconnectedCallback's
DisconnectedCallback.userInitiated property will be set to true.SteamClient should imminently expect the server to close the connection.protected void setExpectDisconnection(boolean expectDisconnection)
SteamClient should imminently expect the server to close the connection.
If this is true when the connection is closed, the DisconnectedCallback's
DisconnectedCallback.userInitiated property will be set to true.expectDisconnection - whether or not the related SteamClient should imminently expect the server to close the connection.public SteamClient getClient()
SteamClient for use in sending replies.public abstract void handleMsg(IPacketMsg packetMsg)
packetMsg - The packet message that contains the data.