Home » Source Code » » guestServer.java

guestServer.java ( File view )

From:
  • By 2010-08-25
  • View(s):237
  • Download(s):0
  • Point(s): 1
			
/*
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

Want complete source code? Download it here

Point(s): 1

Download
0 lines left, continue to read
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
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

guestServer.java (12.50 kB)

Need 1 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point

LOGIN

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

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D