Thread: Java
View Single Post
  #6 (permalink)  
Old 07-29-2007, 01:00 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
PT Admin
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,118
iTrader: (0)
HelloWorld is a jewel in the roughHelloWorld is a jewel in the roughHelloWorld is a jewel in the rough
I'm not sure with what you're trying to say, but about networking, here's what happened:

ServerSocket (in the server) will have all of the clients' socket, and each time ServerSocket accept a connection to a client, that client should get a listener (which you will create with multi threading), that way there will be more than one client can connect simultaneously.

port is not assigned to the client, port is opened from the server, and the client will connect to that specific port.

If you're not sure with multi threading, feel free to see my previous tutorial about multi threading, I think I made several of them (they're all in Java forum)

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote