Package com.jme3.network
Interface HostedConnection
- All Superinterfaces:
- MessageConnection
- All Known Implementing Classes:
- DefaultServer.Connection
This is the connection back to a client that is being
  hosted in a server instance.
- 
Field SummaryFields inherited from interface com.jme3.network.MessageConnectionCHANNEL_DEFAULT_RELIABLE, CHANNEL_DEFAULT_UNRELIABLE
- 
Method SummaryModifier and TypeMethodDescriptionReturns a read-only set of attribute names currently stored for this client session.voidCloses and removes this connection from the server sending the optional reason to the remote client.Returns the transport specific remote address of this connection as a string.<T> TgetAttribute(String name) Retrieves a previously stored session attribute or null if no such attribute exists.intgetId()Returns the server-unique ID for this client.Returns the Server instance that is hosting this connection.setAttribute(String name, Object value) Sets a session attribute specific to this connection.Methods inherited from interface com.jme3.network.MessageConnectionsend, send
- 
Method Details- 
getServerServer getServer()Returns the Server instance that is hosting this connection.
- 
getIdint getId()Returns the server-unique ID for this client.
- 
getAddressString getAddress()Returns the transport specific remote address of this connection as a string. This may or may not be unique per connection depending on the type of transport. It is provided for information and filtering purposes.
- 
closeCloses and removes this connection from the server sending the optional reason to the remote client.
- 
setAttributeSets a session attribute specific to this connection. If the value is set to null then the attribute is removed.- Returns:
- The previous session value for this key or null if there was no previous value.
 
- 
getAttributeRetrieves a previously stored session attribute or null if no such attribute exists.
- 
attributeNamesReturns a read-only set of attribute names currently stored for this client session.
 
-