2 * Copyright © 2018 Keith Packard <keithp@keithp.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
20 import org.altusmetrum.altoslib_13.*;
22 public class AltosMapd {
24 public final static int port = 16717;
26 public final static int maptype = AltosMap.maptype_hybrid;
28 public final static int px_size = 512;
30 public final static int scale = 1;
32 public static void main(final String[] args) {
34 AltosMapdServer server = new AltosMapdServer(port);
36 AltosPreferences.init(new AltosMapdPreferences());
38 AltosPreferences.mapdir = new File("/home/keithp/misc/rockets/flights/maps");
41 Socket client = server.accept();
43 System.out.printf("accept failed\n");
46 System.out.printf("got client\n");
47 new AltosMapdClient(client);