guestServer.java in javabook.rar


Java simple guestbook. Example of a beginner to complete a similar message to th...Original Link
    Sponsored links

			
			
/*
Guestbook by XdebugX
xdebugx@hotmail.com
http://xdebugx.deltaarc.net
*/

import java.net.*; import java.io.*; import java.util.*;

public class guestServer {
	private ServerSocket serverSocket;

	public static void main(String[] args) throws IOException {
    	new guestServer();
    }

	public guestServer() {

		try {
		    serverSocket = new ServerSocket(6541);
            System.out.println("Server Is Running ...");

            } catch (IOException e) {
			            System.out.println("Could not listen on port: .");
			            System.exit(-1);
			        }
			while (true) {
			try {
    	    	Socket socket = serverSocket.accept();
    	    	System.out.println("Connection from : " + socket);
        		new MyServerThread(socket).start();


		    }catch (IOException e) {}

		}


	    	}



}///gurest server			click here to download the whole source code package.

			
			


Project Files

    Sponsored links
NameSizeDate
 guestbook.class8.79 kB15-12-02 01:35
 guestbook.dat1.05 kB15-12-02 04:58
 guestbook.html184.00 B15-12-02 04:57
 guestbook.java9.04 kB15-12-02 01:35
 guestServer.class1.12 kB15-12-02 04:57
 guestServer.java870.00 B15-12-02 04:57
 lock.txt5.00 B15-12-02 04:58
 MyServerThread.class2.32 kB14-12-02 23:43
 MyServerThread.java2.72 kB14-12-02 23:40
 <java留言本>0.00 B17-08-08 22:40
...

Related Items

    Sponsored links