code: private static void writeIdAndName(ClientSocket client, int id, String name) throws IOException
      {
          // New client id
          client.getOut().writeByte(id);
          // New client name
          final byte[] data = name.getBytes(NetworkMessage.CHARSET);
          client.getOut().writeByte(data.length);
          client.getOut().write(data);
      }
docs: Send the id and the name to the client.
  
  @param client The client to send to.
  @param id The id to send.
  @param name The name to send.
  @throws IOException In case of error.