private void start() {
        try {
            System.out.println("Accepting connections.");
            while (true) {
                // recieve new connections
                net = new Network(this, ssocket.accept());
                Thread t = new Thread(net);
                t.start();
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }