public class StateWriter
extends java.lang.Object
| Constructor and Description |
|---|
StateWriter(com.jme3.network.HostedConnection conn,
ObjectStateProtocol objectProtocol,
TimeSource timeSource,
ConnectionStats stats) |
| Modifier and Type | Method and Description |
|---|---|
SentState |
ackSentState(int messageId) |
void |
addState(ObjectState state) |
protected void |
endFrame()
Adds the frame to an existing outbound message or closes/sends
the previous outbound message and starts a new one.
|
protected void |
endMessage() |
void |
flush() |
int |
getMaxMessageSize() |
void |
setMaxMessageSize(int max)
Sets the desired maximum message size.
|
void |
startFrame(long time,
ZoneKey centerZone) |
protected void |
startMessage() |
public StateWriter(com.jme3.network.HostedConnection conn,
ObjectStateProtocol objectProtocol,
TimeSource timeSource,
ConnectionStats stats)
public void setMaxMessageSize(int max)
public int getMaxMessageSize()
public SentState ackSentState(int messageId)
public void startFrame(long time,
ZoneKey centerZone)
throws java.io.IOException
java.io.IOExceptionpublic void addState(ObjectState state) throws java.io.IOException
java.io.IOExceptionprotected void startMessage()
protected void endFrame()
throws java.io.IOException
java.io.IOExceptionprotected void endMessage()
throws java.io.IOException
java.io.IOExceptionpublic void flush()
throws java.io.IOException
java.io.IOException