anchor.diff:  [cols="2", options="header"]
   |===
   
  -a| ConnectionListener interface method 
  -a| Purpose 
  -
  -a| public void connectionAdded(Server s, HostedConnection c){} 
  -a| Implemenent here what happens after a new HostedConnection has joined the Server. 
  -
  -a| public void connectionRemoved(Server s, HostedConnection c){} 
  -a| Implement here what happens after a HostedConnection has left. E.g. a player has quit the game and the server removes his character. 
  -
  -|===
  -
  -First implement the ConnectionListener interface in the Server class. Then register it to myServer in MyGameServer's simpleInitApp() method. 
  +a| ConnectionListener interface method
  +a| Purpose
  +
  +a| public void connectionAdded(Server s, HostedConnection c){}
  +a| Implemenent here what happens after a new HostedConnection has joined the Server.
  +
  +a| public void connectionRemoved(Server s, HostedConnection c){}
  +a| Implement here what happens after a HostedConnection has left. E.g. a player has quit the game and the server removes his character.
  +
  +|===
  +
  +First implement the ConnectionListener interface in the Server class. Then register it to myServer in MyGameServer's simpleInitApp() method.
   
   [source,java]
   ----
  
positive.code: 
  === Kicking a Client
  
  The server can kick a HostedConnection to make it disconnect. You should provide a String with further info (an explanation to the user what happened, e.g. “Shutting down for maintenance) for the server to send along. This info message can be used (displayed to the user) by a ClientStateListener. (See below)
  
  [source,java]
  ----
  
negative.code:    Client myClient = Network.connectToServer("localhost", 6143);
     myClient.start();
     ...
  }
  ----
  
  The server address can be in the format "`localhost`" or "`127.0.0.1`" (for local testing), or an IP address of a remote host in the format "`123.456.78.9`". In this example, we assume the server is running on the localhost.
  
  When you run this client, it connects to the server.
  
  