This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Bunkhouse Porch and the fly likes Client to Server Communication for Herbert Schildt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Books » Bunkhouse Porch
Bookmark "Client to Server Communication for Herbert Schildt" Watch "Client to Server Communication for Herbert Schildt" New topic
Author

Client to Server Communication for Herbert Schildt

Bill Lien
Greenhorn

Joined: Jan 20, 2005
Posts: 1
Hi Herbert,

Thank you for writing The Complete Reference: Java 2 Fifth Edition. I used it in the instruction of my Java Class, and I cannot express my appreciation for how smooth the class went with the easy to follow examples and explanation presented in the book. Will there be a sixth edition convering Java 2 Version 1.5?

On a another note, I have been reviewing the Scrabblet practical application that you provided at the end of the book. I have a question on the communication sent between the Client and the Server. How's the following event triggered when the Server sends a message to the client?

class ServerConnection implements Runnable {
....
public void run() {
String s;
StringTokenizer st;
while ((s = readline()) != null) {
st = new StringTokenizer(s);
String keyword = st.nextToken();
switch (lookup(keyword)) {
default:
System.out.println("bogus keyword: " + keyword + "\r");
break;
....
case CHALLENGE: {
String from = st.nextToken();
scrabblet.challenge(from);
}
break;
}
}
}
}

Your response will be much appreciated.

Thank you.
 
Consider Paul's rocket mass heater.
 
subject: Client to Server Communication for Herbert Schildt
 
Similar Threads
Reversing a string
Parsing of StringBuffer(URGENT)
java client/ c server problem
about StringTokenize===>
StringBuffer Very Urgent please