hi all.. i'm new at this.. please help..=)

hi there.. is this the forum that regards to server and client programming as well? thanks so much as i have questions regarding the topic i mentioned above.. =)blessed day..
[188 byte] By [chevy_chada] at [2007-10-2 20:02:46]
# 1
Are you going to implement your client and server using sockets? If yes then this is right place.
Michael.Nazarov@sun.coma at 2007-7-13 22:42:43 > top of Java-index,Archived Forums,Socket Programming...
# 2

hey.. according to my text, yes i am suppose to implement a multithread socket communication between server and client.. however, i do not understand some of codes that is given to me and i hope someone could explain to me.. thanks a million.. these are my codes for the server that i do not understand..

ServerSocket serverSocket = new ServerSocket (8000);

//wad does the 8000 mean?

while(true)

{

Socket connectToClient = serverSocket.accept();

System.out.println ("Start thread for client" + clientNo);

HandleAClient thread = new

HandleAClient (connectToClient,clientNo);

thread.start();

clientNo++;

}

// do not really know wad is happening here.. hope someone can help.. thanks once again..=)

chevy_chada at 2007-7-13 22:42:43 > top of Java-index,Archived Forums,Socket Programming...
# 3

//wad does the 8000 mean?

Did you read manual? This is port number.

// do not really know wad is happening here.. hope someone can help.. thanks once again..=)

Each incoming connection looks like new socket created using server socket. Common model for handling number of incoming connection - creating new thread for each new connection. So HandleAClient is class based on Thread class.

Michael.Nazarov@sun.coma at 2007-7-13 22:42:43 > top of Java-index,Archived Forums,Socket Programming...