Class ChannelInfoMessage

java.lang.Object
com.jme3.network.AbstractMessage
com.jme3.network.message.ChannelInfoMessage
All Implemented Interfaces:
Message

public class ChannelInfoMessage extends AbstractMessage
Contains information about any extra server channels (if they exist).
Author:
Paul Speed
  • Constructor Details

    • ChannelInfoMessage

      public ChannelInfoMessage()
      Creates an empty channel info message for serialization.
    • ChannelInfoMessage

      public ChannelInfoMessage(long id, List<Integer> ports)
      Creates a message describing the server id and extra ports.
      Parameters:
      id - the server identifier
      ports - the additional ports exposed by the server
  • Method Details

    • getId

      public long getId()
      Returns the server identifier associated with this message.
      Returns:
      the server identifier
    • getPorts

      public int[] getPorts()
      Returns the extra ports advertised by the server.
      Returns:
      the advertised ports
    • toString

      public String toString()
      Overrides:
      toString in class Object