Home » Source Code » » guestServer.java - Java simple guestbook. Example of a begi
Click here to see more ▼
Click here to hide ▲

guestServer.java - Java simple guestbook. Example of a begi


			
/*
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			
Expand> <Close
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
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
...
Sponsored links
×

Login CodeForge

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com
×

Sorry, you don't have enough CF coins! ^_^|||

Fast channel (Get CF coins immediately):
10 CF coins (points) for $20.00 USD
22 CF coins (points) for$40.00USD
55 CF coins (points) for$100.00USD
120 CF coins (points) for$200.00USD
Free channel :

Submit your source codes
You could get 1-10 CF coins
More……
×

切换到中文版?

×

Where are you going?

×

Tips

This user hasn't enable blog!
×

Tips

Favorite by Ctrl+D