com.threerings.presents.net
Class Message
java.lang.Object
com.threerings.io.SimpleStreamableObject
com.threerings.presents.net.Message
- All Implemented Interfaces:
- Streamable
- Direct Known Subclasses:
- DownstreamMessage, UpstreamMessage
public abstract class Message
- extends SimpleStreamableObject
The superclass of UpstreamMessage and DownstreamMessage.
|
Field Summary |
long |
received
A timestamp indicating when this message was received from the network. |
received
public transient long received
- A timestamp indicating when this message was received from the network.
Message
public Message()
setTransport
public void setTransport(Transport transport)
- Sets the message transport parameters. For messages received over the network, these
describe the mode of transport over which the message was received. When sending messages,
they act as a hint as to the type of transport desired. Calling this method may have no
effect, depending on whether non-default modes of transport are supported for this message
type.
getTransport
public Transport getTransport()
- Returns the message transport parameters.
noteActualTransport
public void noteActualTransport(Transport transport)
- For messages sent over the network, this notes the actual type of transport used to deliver
the message. This may not be the same as the hinted transport for various reasons (message
too large to send as datagram, no datagram connection established, etc.)