Logo Search packages:      
Sourcecode: jaminid version File versions  Download package

void com::prolixtech::jaminid::Daemon::run (  )  [inline]

Handles listening for new connections and launching client threads

Definition at line 148 of file Daemon.java.

                      {
        super.run();

        try {

            try {

                while (RUNNING) {
                    Socket socket = serverSocket.accept();
                    try {
                        printlog("Accepted Socket: " + socket);
                        new Connection(socket, this);
                    } catch (IOException e) {
                        socket.close();
                    }
                }

            } finally {
                serverSocket.close();
            }

        } catch (Exception e) {
            this.printlog("A major error has occured\n" + e);
            System.exit(-1);
        }

    }


Generated by  Doxygen 1.6.0   Back to index